Kerbly

Accessible yellow color palette

Very bright, so it almost never works with white text.

Your brand colour

Try an example

What your colour can do

#eab308

Sits at step 300 of your scale

  • ✕ FailWhite text on your colour: 1.92:1. Too faint for normal text (needs 4.5:1).
  • ✓ PassBlack text on your colour: 10.95:1. Dark text works here.

Use black or very dark text on this colour, or step 600 (#8f6c00) for white text. It keeps your hue and reaches 4.87:1.

Your colour scale

Eleven steps from very light to very dark, evenly spaced to the eye. Each tile shows the text colour that reads best on it.

  1. 50

    #fff6e2

    Black 19.53

  2. 100

    #ffebbf

    Black 17.89

  3. 200

    #fdd57c

    Black 14.99

  4. 300 (your colour)

    #eab308

    Black 10.95

  5. 400

    #d19f00

    Black 8.67

  6. 500

    #af8500

    Black 6.18

  7. 600

    #8f6c00

    White 4.87

  8. 700

    #735600

    White 6.86

  9. 800

    #584100

    White 9.67

  10. 900

    #3f2d00

    White 13.23

  11. 950

    #241800

    White 17.42

See the contrast numbers for every step
Contrast ratio of each step on white and on a dark background
StepColourOn whiteOn dark (#111111)
50#fff6e21.08:1 ✕17.56:1 ✓ AA
100#ffebbf1.17:1 ✕16.08:1 ✓ AA
200#fdd57c1.4:1 ✕13.47:1 ✓ AA
300 (yours)#eab3081.92:1 ✕9.85:1 ✓ AA
400#d19f002.42:1 ✕7.8:1 ✓ AA
500#af85003.4:1 large text only5.56:1 ✓ AA
600#8f6c004.87:1 ✓ AA3.88:1 large text only
700#7356006.86:1 ✓ AA2.75:1 ✕
800#5841009.67:1 ✓ AA1.95:1 ✕
900#3f2d0013.23:1 ✓ AA1.43:1 ✕
950#24180017.42:1 ✓ AA1.08:1 ✕

Safe pairs to use

Picked from your scale so each one passes WCAG, with the ratio shown.

  • Book now

    Button with white text

    The lightest step that still gives white text 4.5:1.

    White on 6004.87:1 ✓ Pass

  • Read the details

    Links and text on white

    Coloured text on a white page needs 4.5:1 too.

    600 on white4.87:1 ✓ Pass

  • Read the details

    Links on a dark background

    For dark mode or dark sections. The darkest step that still reads on near-black.

    500 on dark5.56:1 ✓ Pass

  • Input with a border

    Borders, icons and focus rings

    Parts of controls need 3:1 against what they sit on (WCAG 1.4.11).

    500 on white3.4:1 ✓ Pass

  • Callout text

    Text on a light tint

    Callouts and badges: a very light background with a dark step for the text.

    950 on 5016.2:1 ✓ Pass

Take it with you

:root {
  --yellow-50: #fff6e2;
  --yellow-100: #ffebbf;
  --yellow-200: #fdd57c;
  --yellow-300: #eab308;
  --yellow-400: #d19f00;
  --yellow-500: #af8500;
  --yellow-600: #8f6c00;
  --yellow-700: #735600;
  --yellow-800: #584100;
  --yellow-900: #3f2d00;
  --yellow-950: #241800;
}

The short answer

Yellow (#eab308) does not work with white text. The ratio is only 1.92:1, below the 4.5:1 needed for AA. Dark text works instead, at 10.95:1. If you want white text, use step 600 (#8f6c00), which reaches 4.87:1.

Yellow shades and their contrast

Yellow scale with contrast ratios on white and on a dark background
StepColourOn whiteOn dark
50#fff6e21.08:1 ✕17.56:1 ✓ AA
100#ffebbf1.17:1 ✕16.08:1 ✓ AA
200#fdd57c1.4:1 ✕13.47:1 ✓ AA
300 (yours)#eab3081.92:1 ✕9.85:1 ✓ AA
400#d19f002.42:1 ✕7.8:1 ✓ AA
500#af85003.4:1 large only5.56:1 ✓ AA
600#8f6c004.87:1 ✓ AA3.88:1 large only
700#7356006.86:1 ✓ AA2.75:1 ✕
800#5841009.67:1 ✓ AA1.95:1 ✕
900#3f2d0013.23:1 ✓ AA1.43:1 ✕
950#24180017.42:1 ✓ AA1.08:1 ✕

Questions about yellow

Does yellow work with white text?

Not at normal text sizes. Yellow (#eab308) has a contrast ratio of 1.92:1 with white, below the 4.5:1 WCAG AA asks for. The nearest shade that works is step 600 (#8f6c00) at 4.87:1.

Does black text work on yellow?

Yes. Black on #eab308 is 10.95:1, which passes AA, so dark text is a good choice on this colour.

Which shade of yellow should I use for links on a white page?

Use a step that reaches 4.5:1 on white. For yellow that is step 600 (#8f6c00), at 4.87:1.

Other colours

Build a scale from your own colour or check two colours.

Is your live site using these colours well?

A free scan checks every colour pair on your page against WCAG 2.2 and shows what to fix.

No account needed. Takes about 30 seconds.