edubun
English

Using colour in a design

About 8 percent of men have red-green colour vision deficiency, so a form that marks errors only in red leaves many of them guessing.

Loading the 3D model

Drag to turn. Scroll or pinch to zoom.

A brand colour and its complement. Switch the background in the panel to the complement to see how the pair reads as text and background, then try white and black.

Never let colour carry the message alone

WCAG 2.2 success criterion 1.4.1, Use of Color, sits at level A, the most basic level. It says colour must not be the only visual means of conveying information, indicating an action, prompting a response or distinguishing a visual element. A red border on a form field that has an error is fine, as long as there is also an icon or a line of text saying what is wrong. A line chart with five coloured lines also needs labels, different line styles or markers. Links inside a paragraph need an underline or another cue besides colour.

The reason is partly colour vision. The OpenStax neuroscience text explains that some people carry a genetic variation that gives them two cone types instead of three, or one cone pigment that works differently. They are not blind to a colour, but some colours that most people tell apart look the same to them. The red-green forms are the most common and affect about 8% of males. Other reasons matter too: a phone in bright sunlight, a cheap projector, a printout in black and white. A design that still works in greyscale works in all of these.

Lightness does the heavy lifting

Because of this, experienced designers plan a palette in two passes. First they decide the lightness steps: a very light background, a mid-tone for borders, a dark tone for text. Then they choose hues. Checking each text and background pair with the contrast ratio from unit 6 is the quickest way to know the steps are far enough apart. Complementary hues do not guarantee contrast. In the model, the brand orange and its blue complement have the same HSL saturation and lightness, and the ratio between them is only 1.06:1. Two colours can be as far apart as possible in hue and still be hard to read on each other.

A simple working method puts the units of this course together. Start with one hue that fits the subject. Use a harmony from unit 4 to pick one or two supporting hues. Give the dominant colour most of the area, roughly 60%, a secondary colour 30%, and an accent 10%, the rule of thumb from the University of Delaware guide. Pick lightness for every text pair until each one reaches at least 4.5:1, or 3:1 for large headings and icons. Finally, check that nothing depends on colour alone: errors have words, links have underlines, charts have labels.

Charts deserve their own care, because they often need many colours at once. The University of Delaware guide points to ColorBrewer, a tool built for map and chart palettes. For values that run from low to high, a sequential palette of one hue that steps from light to dark keeps working in greyscale. For categories, use as few colours as you can, give each a label next to the line or bar rather than only in a legend, and keep the steps in lightness different enough that two neighbours never look alike.

This site follows the same rules. Its accent colour #a8581b has a contrast ratio of 5.15:1 against the white page, and the body text colour #1c1a17 reaches 17.36:1.
CheckRuleSource
Body text4.5:1 or moreWCAG 2.2, 1.4.3
Large text3:1 or moreWCAG 2.2, 1.4.3
Icons, field borders, focus outlines3:1 or moreWCAG 2.2, 1.4.11
Errors, links, chart linesNot by colour aloneWCAG 2.2, 1.4.1
Share of areaAbout 60 / 30 / 10University of Delaware guide
Key points
  • WCAG 1.4.1: colour must not be the only way to convey information.
  • Red-green colour vision deficiency affects about 8% of males.
  • Plan lightness steps first, hues second; complementary hues do not guarantee contrast.
  • Check every text pair with the contrast ratio.
  1. What does WCAG 1.4.1 Use of Color require?
    • Colour must not be the only visual means of conveying information
    • Every page must use at least three colours
    • Links must be blue
    • Text must be black
  2. At what level is 1.4.1?
    • A
    • AA
    • AAA
    • None
  3. About what percentage of males have red-green colour vision deficiency, according to OpenStax?
  4. A form marks a wrong field only with a red border. What should be added?
    • An icon or text that says what is wrong
    • A brighter red
    • A green border on correct fields
    • Nothing
  5. Two colours are complementary hues with the same HSL lightness. Their contrast ratio is...
    • Not guaranteed to be high
    • Always 21:1
    • Always at least 4.5:1
    • Always 1:1
  6. Contrast ratio of this site's accent #a8581b on white, to 2 decimal places?
  7. In which order do many designers plan a palette?
    • Lightness steps first, then hues
    • Hues first, never lightness
    • Random colours, then test
    • Only black and white
  8. A chart shows five lines in different colours. What helps people who cannot tell the colours apart?
    • Labels, line styles or markers
    • More saturated colours
    • A darker background
    • Thicker lines only
  9. In a 60/30/10 palette, what share goes to the dominant colour?
  10. Why test a design in greyscale?
    • It shows whether lightness alone separates the parts
    • Greyscale is required by WCAG
    • It makes files smaller
    • It changes the hue angles
Sources for this course (14)
  • W3C, Web Content Accessibility Guidelines (WCAG) 2.2, relative luminance (0.04045 threshold, note on the pre-May-2021 value 0.03928)
  • contrast ratio (L1 + 0.05) / (L2 + 0.05)
  • range 1:1 to 21:1, SC 1.4.1 Use of Color, 1.4.3 Contrast (Minimum) 4.5:1 and 3:1 for large-scale text (18 pt, or 14 pt bold)
  • 1.4.6 Contrast (Enhanced) 7:1 and 4.5:1, 1.4.11 Non-text Contrast 3:1, WCAG 2.1 published June 2018 (w3.org/TR/WCAG22/)
  • W3C, CSS Color Module Level 4, hex notation, hsl with 0deg red, 120deg green, 240deg blue, hsl(60deg 100% 50%) yellow vs hsl(240deg 100% 50%) blue at the same HSL lightness, hue spacing not perceptually uniform, HSL as a cylindrical model (w3.org/TR/css-color-4/)
  • OpenStax College Physics 2e, 26.3 Color and Color Vision: about 6 million cones of three types, red + green gives yellow, no unique set of primaries (openstax.org/books/college-physics-2e/pages/26-3-color-and-color-vision)
  • OpenStax Introduction to Behavioral Neuroscience, 6.2 The Retina: RGB pixels, CMY inks plus black, red-green colour blindness in about 8% of males (openstax.org/books/introduction-behavioral-neuroscience/pages/6-2-the-retina)
  • Smithsonian Libraries, Color in a New Light, The Science of Color: Newton's prism experiments from the 1660s, Opticks 1704, Le Blon's Coloritto (London, about 1722) and the distinction between material colours and coloured light (library.si.edu/exhibition/color-in-a-new-light/science)
  • The Newton Project (University of Oxford)
  • Opticks 1704, Book I Part II Prop. VI: colour circle divided into seven parts in musical proportion, white at the centre (newtonproject.ox.ac.uk/view/texts/normalized/NATP00034)
  • History of Information and Wikimedia Commons file record, Maxwell's 1861 Royal Institution demonstration, tartan ribbon photographed by Thomas Sutton through red, green and blue filters and projected together (historyofinformation.com/detail.php?id=3666)
  • LibreTexts, Coalinga College Drawing Basics 8.4 Color Theory: complementary, analogous, split-complementary, triadic, tetradic (human.libretexts.org)
  • RMIT Colour Theory, Interactive colour wheel and colour relationships (rmit.pressbooks.pub/colourtheory1)
  • University of Delaware Library, Graphic Design guide, Color Schemes, 60/30/10 rule (guides.lib.udel.edu/design/color).

Checked: 2026-10-17