Kerbly

Accessible amber color palette

A warm yellow-orange that needs dark text, not white.

Your brand colour

Try an example

What your colour can do

#f59e0b

Sits at step 400 of your scale

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

Use black or very dark text on this colour, or step 600 (#9d6300) for white text. It keeps your hue and reaches 4.98: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

    #fff5ea

    Black 19.5

  2. 100

    #ffe9d0

    Black 17.82

  3. 200

    #ffd29e

    Black 14.96

  4. 300

    #fdb355

    Black 11.76

  5. 400 (your colour)

    #f59e0b

    Black 9.78

  6. 500

    #c17a00

    Black 6.05

  7. 600

    #9d6300

    White 4.98

  8. 700

    #7f4f00

    White 6.95

  9. 800

    #613b00

    White 9.84

  10. 900

    #462900

    White 13.31

  11. 950

    #291500

    White 17.48

See the contrast numbers for every step
Contrast ratio of each step on white and on a dark background
StepColourOn whiteOn dark (#111111)
50#fff5ea1.08:1 ✕17.54:1 ✓ AA
100#ffe9d01.18:1 ✕16.02:1 ✓ AA
200#ffd29e1.4:1 ✕13.46:1 ✓ AA
300#fdb3551.79:1 ✕10.57:1 ✓ AA
400 (yours)#f59e0b2.15:1 ✕8.79:1 ✓ AA
500#c17a003.47:1 large text only5.44:1 ✓ AA
600#9d63004.98:1 ✓ AA3.79:1 large text only
700#7f4f006.95:1 ✓ AA2.72:1 ✕
800#613b009.84:1 ✓ AA1.92:1 ✕
900#46290013.31:1 ✓ AA1.42:1 ✕
950#29150017.48: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.98:1 ✓ Pass

  • Read the details

    Links and text on white

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

    600 on white4.98: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.44: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.47: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.23:1 ✓ Pass

Take it with you

:root {
  --amber-50: #fff5ea;
  --amber-100: #ffe9d0;
  --amber-200: #ffd29e;
  --amber-300: #fdb355;
  --amber-400: #f59e0b;
  --amber-500: #c17a00;
  --amber-600: #9d6300;
  --amber-700: #7f4f00;
  --amber-800: #613b00;
  --amber-900: #462900;
  --amber-950: #291500;
}

The short answer

Amber (#f59e0b) does not work with white text. The ratio is only 2.15:1, below the 4.5:1 needed for AA. Dark text works instead, at 9.78:1. If you want white text, use step 600 (#9d6300), which reaches 4.98:1.

Amber shades and their contrast

Amber scale with contrast ratios on white and on a dark background
StepColourOn whiteOn dark
50#fff5ea1.08:1 ✕17.54:1 ✓ AA
100#ffe9d01.18:1 ✕16.02:1 ✓ AA
200#ffd29e1.4:1 ✕13.46:1 ✓ AA
300#fdb3551.79:1 ✕10.57:1 ✓ AA
400 (yours)#f59e0b2.15:1 ✕8.79:1 ✓ AA
500#c17a003.47:1 large only5.44:1 ✓ AA
600#9d63004.98:1 ✓ AA3.79:1 large only
700#7f4f006.95:1 ✓ AA2.72:1 ✕
800#613b009.84:1 ✓ AA1.92:1 ✕
900#46290013.31:1 ✓ AA1.42:1 ✕
950#29150017.48:1 ✓ AA1.08:1 ✕

Questions about amber

Does amber work with white text?

Not at normal text sizes. Amber (#f59e0b) has a contrast ratio of 2.15:1 with white, below the 4.5:1 WCAG AA asks for. The nearest shade that works is step 600 (#9d6300) at 4.98:1.

Does black text work on amber?

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

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

Use a step that reaches 4.5:1 on white. For amber that is step 600 (#9d6300), at 4.98: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.