EYRO COLOR STUDIO

Black and White: color combinations and palettes

Black and White: six examples, three calculated fields, shape and lettering contrast, third-color options and a palette editor.

Screen #000000 and #FFFFFF give a contrast of 21:1 according to the formula WCAG. When you rearrange the colors, the numerical contrast does not change, but the light area and character of the composition change. Grey additional surfaces allow you to separate the blocks, keeping black and white main. The black-and-white base gains two versions with one colored detail. A red marker stands out beside a black circle on white; a blue-violet button appears inside a pale card in a black setting. The source #000000 and #FFFFFF remain unchanged. Their 21:1 ratio does not automatically apply to a cream surface, graphite text or colored button. The white shape loses its edge on a light field, while the black shape loses its edge on a dark one. The middle field lets you compare both edges together. The new tool compares light, middle and dark fields while retaining equal areas for the two shapes.

Black-and-White Base with a Color Marker ↗Black and White: Background Study ↗

Same pair, your proportions.

#000000#FFFFFF

The stripes show fractions of the area, not a mixture of colors. The background color and the text are checked separately.

Two colors, one idea.An example of the second color as the text on the first.

21.00:1 · AA for normal text

Shades options for this pair

#41424A ↗

Graphite · EYRO

Comparative dark pattern: not full black.

These are EYRO editorial screen samples. The household name of the hue does not specify a single HEX: compare the specified codes on the same screen and background.

Created in EYRO

Palette Examples

EYRO/Color Composition
Black and White
in the lead role.
Tint · area · rhythm

Typographic poster

A black shape on a white field leaves a large light area. A light gray surface adds a layer, a middle gray remains a decorative detail, black text retains the ultimate contrast with white.

Main text / surface: 16.83:1. The same text on the outer background: 21.00:1. The small label above the layout uses black or white according to contrast.

Edit and save this palette ↗
eyro● ● ●
Color in detailRoom for
an idea
Learn more ↗

Article card

A black background surrounds a white card with black text. A graphite shape softens a large dark block, the middle gray remains an accent. The text outside the white card will require its own light color.

Main text / surface: 21.00:1. The same text on the outer background: 1.00:1. The small label above the layout uses black or white according to contrast.

Edit and save this palette ↗
EYRO/Color Composition
Black and White
in the lead role.
Tint · area · rhythm

Composition with a Separate Marker

A red marker occupies a small decorative area. Main text is dark graphite on a cream strip, so its calculation differs from 21:1. Field #FFFFFF, shape #000000, surface #F4F2EC, accent #C84343, text #202126. Main lettering is checked against the surface; the button label is checked separately.

Main text / surface: 14.35:1. The same text on the outer background: 16.07:1. The small label above the layout uses black or white according to contrast.

Edit and save this palette ↗
eyro● ● ●
Color in detailRoom for
an idea
Learn more ↗

Card with a New Accent

A white arch sits inside a cream card: the neighboring pale fills remain decorative. The saturated button receives a separate label color. Field #000000, shape #FFFFFF, surface #F4F2EC, accent #8A2BE2, text #202126. Main lettering is checked against the surface; the button label is checked separately.

Main text / surface: 14.35:1. The same text on the outer background: 1.31:1. The small label above the layout uses black or white according to contrast.

Edit and save this palette ↗
CHOOSE THE SURROUND #000000#FFFFFF Field #F0F0F0 · Text #000000

Compare Three Fields

Shapes and all five HEX codes stay fixed. Changing the field chooses lettering again by the highest contrast in the set.

#000000 / #F0F0F0: 18.43:1
#FFFFFF / #F0F0F0: 1.14:1
Shape-edge ratios; these do not assess text.

Choose Lettering

18.43:1 · AA for normal textCheck Pair ↗
15.73:1 · AA for normal textCheck Pair ↗
1.14:1 · Below AA for normal textCheck Pair ↗
3.47:1 · Below AA for normal textCheck Pair ↗

Field: #F0F0F0 · Text: #000000 · AA for normal text

Open Selected Roles in the Editor ↗
All Three States and Calculations without JavaScript

Among these three fields, the highest minimum of the two edge ratios: #808080. This compares edge visibility rather than the harmony of the whole design.

Light Field #F0F0F0

#000000: 18.43:1 · #FFFFFF: 1.14:1 · Minimum: 1.14:1

#000000 — 18.43:1 · AA for normal text

#171717 — 15.73:1 · AA for normal text

#FFFFFF — 1.14:1 · Below AA for normal text

#808080 — 3.47:1 · Below AA for normal text

Open This State ↗
Dark Field #171717

#000000: 1.17:1 · #FFFFFF: 17.93:1 · Minimum: 1.17:1

#F0F0F0 — 15.73:1 · AA for normal text

#000000 — 1.17:1 · Below AA for normal text

#FFFFFF — 17.93:1 · AA for normal text

#808080 — 4.54:1 · AA for normal text

Open This State ↗
Middle Field #808080

#000000: 5.32:1 · #FFFFFF: 3.95:1 · Minimum: 3.95:1

#F0F0F0 — 3.47:1 · Below AA for normal text

#000000 — 5.32:1 · AA for normal text

#171717 — 4.54:1 · AA for normal text

#FFFFFF — 3.95:1 · Below AA for normal text

Open This State ↗

Numbers and links work without JavaScript. Switching the field and lettering in the shared preview requires JavaScript.

Background Choice: Light Start

The white shape loses its edge on a light field, while the black shape loses its edge on a dark one. The middle field lets you compare both edges together. RGB mean #808080 is derived from #000000 and #FFFFFF, rounding exact halves upward. Light field #F0F0F0 is 12% of that mean and 88% white; dark field #171717 is 18% mean and 82% black. Among the three shown fields, #808080 gives the highest minimum shape-edge ratio. This assesses edges within this set rather than a universally best background.

Edit and save this palette ↗
CHOOSE THE SURROUND #000000#FFFFFF Field #171717 · Text #FFFFFF

Compare Three Fields

Shapes and all five HEX codes stay fixed. Changing the field chooses lettering again by the highest contrast in the set.

#000000 / #171717: 1.17:1
#FFFFFF / #171717: 17.93:1
Shape-edge ratios; these do not assess text.

Choose Lettering

15.73:1 · AA for normal textCheck Pair ↗
1.17:1 · Below AA for normal textCheck Pair ↗
17.93:1 · AA for normal textCheck Pair ↗
4.54:1 · AA for normal textCheck Pair ↗

Field: #171717 · Text: #FFFFFF · AA for normal text

Open Selected Roles in the Editor ↗
All Three States and Calculations without JavaScript

Among these three fields, the highest minimum of the two edge ratios: #808080. This compares edge visibility rather than the harmony of the whole design.

Light Field #F0F0F0

#000000: 18.43:1 · #FFFFFF: 1.14:1 · Minimum: 1.14:1

#000000 — 18.43:1 · AA for normal text

#171717 — 15.73:1 · AA for normal text

#FFFFFF — 1.14:1 · Below AA for normal text

#808080 — 3.47:1 · Below AA for normal text

Open This State ↗
Dark Field #171717

#000000: 1.17:1 · #FFFFFF: 17.93:1 · Minimum: 1.17:1

#F0F0F0 — 15.73:1 · AA for normal text

#000000 — 1.17:1 · Below AA for normal text

#FFFFFF — 17.93:1 · AA for normal text

#808080 — 4.54:1 · AA for normal text

Open This State ↗
Middle Field #808080

#000000: 5.32:1 · #FFFFFF: 3.95:1 · Minimum: 3.95:1

#F0F0F0 — 3.47:1 · Below AA for normal text

#000000 — 5.32:1 · AA for normal text

#171717 — 4.54:1 · AA for normal text

#FFFFFF — 3.95:1 · Below AA for normal text

Open This State ↗

Numbers and links work without JavaScript. Switching the field and lettering in the shared preview requires JavaScript.

Background Choice: Dark Start

The white shape loses its edge on a light field, while the black shape loses its edge on a dark one. The middle field lets you compare both edges together. RGB mean #808080 is derived from #000000 and #FFFFFF, rounding exact halves upward. Light field #F0F0F0 is 12% of that mean and 88% white; dark field #171717 is 18% mean and 82% black. Among the three shown fields, #808080 gives the highest minimum shape-edge ratio. This assesses edges within this set rather than a universally best background.

Edit and save this palette ↗

What is the third color to add?

Options for the original samples of this pair. Open the three to change roles, fractions and shades.

#DCCBB5#000000#FFFFFF

Beige as a Shared Background

Beige · background →

Try #DCCBB5 as a shared base while keeping the source #000000 and #FFFFFF. The selected role passes to the tool; check lettering on the new surface separately.

Try the three colors ↗
#000000#FFFFFF#C84343

Red as an Accent

Red · accent →

Try #C84343 as a small detail while keeping the source #000000 and #FFFFFF. The selected role passes to the tool; check lettering on the new surface separately.

Try the three colors ↗
#000000#FFFFFF#8A2BE2

Blue-Violet as an Accent

Blue-Violet · accent →

Try #8A2BE2 as a small detail while keeping the source #000000 and #FFFFFF. The selected role passes to the tool; check lettering on the new surface separately.

Try the three colors ↗

What to look at when selecting

  • Change the area of black separately from its HEX, so as not to mix two different tasks.
  • Even with a 21:1 contrast, font size, spacing, and line length all affect readability.
  • Do not transfer the result of a black and white pair to gray labels: their contrast is calculated separately.
  • Reserve the colored accent for one action or marker. Add clear labels and shapes for repeated states, then check each surface.
  • First compare both shape edges against the three fields. Then choose lettering. Changing the field restores the highest-contrast text within the palette.

Frequent questions

Why is the contrast between black and white equal to 21:1?

In the WCAG formula, the relative brightness of white is 1, black is 0. The ratio (1 + 0.05) / (0 + 0.05) is 21.

Is white text on black more contrasting than black on white?

For these two exact codes, the numerical contrast is the same, and the choice of circuitry changes the area of light and dark surfaces, but not this ratio.

Does every black-and-white palette have 21:1 contrast?

21:1 applies to opaque #000000 and #FFFFFF. Gray, cream or translucent lettering produces a different result. In the new examples main text and the button are checked using their actual codes.

How Are the Three New Fields Calculated?

RGB mean #808080 is derived from #000000 and #FFFFFF, rounding exact halves upward. Light field #F0F0F0 is 12% of that mean and 88% white; dark field #171717 is 18% mean and 82% black. Among the three shown fields, #808080 gives the highest minimum shape-edge ratio. This assesses edges within this set rather than a universally best background. First the two source channels are averaged and rounded; the light and dark fields then use that already-rounded mean. This interpolates encoded sRGB channels rather than mixing linear light or paint.

Why Does Lettering Change with the Field?

The other four colors are compared again against the new field. The highest ratio is selected by default; ties use the lower index. The 4.5:1 threshold is assessed before rounding. A warning is shown if none passes. You can choose another lettering color manually; source HEX codes remain fixed.

Ready palettes with this pair

Try your own version.

Your palette / 3–5 colors

Curated EYRO palettes. Locked swatches are preserved.

#FFFFFF
#000000
#E6E6E6
#808080
#41424A

Lock the colors you love, then generate the rest.

Assign background, text and accent using the buttons below the swatches. Selecting an assigned color swaps its role. Links and saved palettes keep your roles.

FROM COLORS TO AN IDEA

See your palette in action

Live previews
EYRO STUDIO № 01
Make room.A little space for your next idea

01 Poster

forma.●   ●   ●
NEW COLLECTION

Simple things. Better ideas.

Explore ↗

02 Website card

FORM / COLOR / BALANCE

03 Geometry

Contrast of every color pair

For opaque sRGB colors. AA: at least 4.5:1 for normal text and 3:1 for large text (24 px, or 18.67 px bold). AAA: at least 7:1 for normal text and 4.5:1 for large text. Results use the full value; displayed ratios are truncated to two decimals.

Saved in this browser

Ready-made roles

Palettes of four and five colors

Select a set with ready-made background, text and accent roles. Use it to replace the colors in the editor; the old version can be returned with the "Back" button. Then pin the desired samples or assign the roles in your own way.

4 Flowers

Blue and coral.

The light background, the blue shape, the coral action and the dark text. Four exact samples are transmitted without the addition of a fifth.

Background
#F3F6FC
Text
#26354A
Accent
#E78B7A
Apply the set ↑
4 Flowers

Sage and terracotta

A light greenish base, a sage shape and a warm terracotta detail. Deep green is assigned to the text.

Background
#F5F6ED
Text
#2D3B2E
Accent
#C27B66
Apply the set ↑
4 Flowers

Lilac and lemon

The light purple base, the purple shape and the lemon action. The deep core text retains a distinct role.

Background
#F6F2FB
Text
#392F48
Accent
#F1E75B
Apply the set ↑
4 Flowers

Dark blue-green and mint

A deep background, a blue-green shape, a light mint accent and almost white text, the set features four independent roles.

Background
#1F3032
Text
#F4F8F3
Accent
#B9D6C4
Apply the set ↑
5 Flowers

Blue, white surface and sand

Blue defines the shape, sand defines the accent. The white surface is separated from the external background; dark text is designated as the last sample.

Background
#F3F6FA
Text
#233449
Accent
#C9AD83
Apply the set ↑
5 Flowers

Sage, white surface and coral

The sage and the coral are divided between the main shape and the action, and the white surface supports a separate deep green text.

Background
#F4F7F1
Text
#2E3C32
Accent
#E78B7A
Apply the set ↑
5 Flowers

Eggplant, white surface and mint

Eggplant creates a deep shape in a light environment, mint creates a light accent, and the surface under the text has its own white color.

Background
#F6F2F6
Text
#392A3A
Accent
#B9D6C4
Apply the set ↑
5 Flowers

Deep blue, cyan and ochre

Cyan gives a bright shape in a deep blue environment, ochre is a warm accent, almost white text is designed for the outside background and dark surface.

Background
#1B2B39
Text
#F4F7FC
Accent
#BE8A3D
Apply the set ↑

Four samples are transmitted as four colors. Fives are additionally highlighted by the surface of the card. The contrast depends on the actual background and text; after the changes, check the matrix in the editor.

Samples, palettes, explanations and mockups are produced by EYRO. Digital colors do not replace physical samples of fabric, paint or printing.