Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Hex Triplet

#1a1a1a

Red Green Blue

rgb(26,26,26)

Hue Saturation Lightness

hsl(0,0%,10.2%)

Cyan Magenta Yellow Key

0%, 0%, 0%, 89.8%

 Important information about contrast

Contrast

Contrast is the difference in luminance or color that makes an object (or its representation in an image or display) distinguishable.

In visual perception of the real world, contrast is determined by the difference in the color and brightness of the object and other objects within the same field of view.

Requirements

We want to make sure that the colors we use are distinguishable when perceived in the same space.

An example of this is the color of text on top of a background color.

Contrast Ratio

Level

Text Color

Background Color

Example

1

9.27

AAA

#172842

#ffc401

example

2

5.34

AA

#0847a6

#ffc401

example

3

3.68

AALG

#6454c0

#ffc401

example

4

1.65

FAIL

#97a0af

#ffc401

example

As you can see above in the, example column of the above table, rows three and four are more difficult to read than rows one and two.

According to the W3C WCAG 2.0:

Contrast (Minimum): The visual presentation of text and images of text has a contrast ratio of at least 4.5:1, except for the following: (Level AA)

  • Large Text: Large-scale text and images of large-scale text have a contrast ratio of at least 3:1;

  • Incidental: Text or images of text that are part of an inactive user interface component, that are pure decoration, that are not visible to anyone, or that are part of a picture that contains significant other visual content, have no contrast requirement.

  • Logotypes: Text that is part of a logo or brand name has no minimum contrast requirement.

Rating

Success Criterion

Notes

AAA

Pass, (7+ contrast ratio)

AA

Pass, (4.5+ contrast ratio)

AALG

Pass, Large Text Only, (3+ contrast ratio)

with at least 18 point or 14 point bold or font size

More information can be found here /wiki/spaces/WCAG/pages/163513201.

AAA

Hex Triplet

Name

Contrast Ratio

#ffffff

white

17.4

#f6f7f8

gray-tint-1

16.2

#f1f3f5

gray-tint-2

15.6

#edeff1

gray

15.1

#e5e8ec

gray-tint-3

14.2

#d9eaf5

blue-tint-2

14.1

#b0e3e4

teal-tint-2

12.4

#9fd64d

green

10.1

#83c32e

green-secondary

8.1

#ef9070

orange-tint-2

7.4

AA

Hex Triplet

Name

Contrast Ratio

#e98698

pink-tint-1

6.9

#059bd6

blue-tint-1

5.5

#ff5200

orange-tint-1

5.1

AALG

Hex Triplet

Name

Contrast Ratio

#ff0000

red

4.4

#44873c

green-shade-1

4.0

#037fb0

blue-shade-3

3.9

#00818f

teal

3.8

#d14200

orange

3.7

#0273ba

blue

3.5

#d6006e

pink

3.4

#5f6a78

gray-shade-1

3.2

#cc0000

red-secondary

3.0

  • No labels