Accessible grey color palette
The default for secondary text, and where many sites go too light.
Your brand colour
Try an example
What your colour can do
#6b7280
Sits at step 600 of your scale
- ✓ PassWhite text on your colour: 4.83:1. Fine for buttons and banners.
- ✕ FailBlack text on your colour: 4.34:1. Dark text is too faint here.
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.
50
#f5f7f9
Black 19.55
100
#eaedf2
Black 17.89
200
#d6dbe4
Black 15.11
300
#bec4d1
Black 12.01
400
#a1a8b6
Black 8.79
500
#858c9b
Black 6.22
600 (your colour)
#6b7280
White 4.83
700
#555b68
White 6.81
800
#404550
White 9.61
900
#2c3039
White 13.22
950
#181b20
White 17.26
See the contrast numbers for every step
| Step | Colour | On white | On dark (#111111) |
|---|---|---|---|
| 50 | #f5f7f9 | 1.07:1 ✕ | 17.58:1 ✓ AA |
| 100 | #eaedf2 | 1.17:1 ✕ | 16.09:1 ✓ AA |
| 200 | #d6dbe4 | 1.39:1 ✕ | 13.59:1 ✓ AA |
| 300 | #bec4d1 | 1.75:1 ✕ | 10.8:1 ✓ AA |
| 400 | #a1a8b6 | 2.39:1 ✕ | 7.91:1 ✓ AA |
| 500 | #858c9b | 3.38:1 large text only | 5.59:1 ✓ AA |
| 600 (yours) | #6b7280 | 4.83:1 ✓ AA | 3.91:1 large text only |
| 700 | #555b68 | 6.81:1 ✓ AA | 2.77:1 ✕ |
| 800 | #404550 | 9.61:1 ✓ AA | 1.96:1 ✕ |
| 900 | #2c3039 | 13.22:1 ✓ AA | 1.43:1 ✕ |
| 950 | #181b20 | 17.26:1 ✓ AA | 1.09: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.83:1 ✓ Pass
- Read the details
Links and text on white
Coloured text on a white page needs 4.5:1 too.
600 on white4.83: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.59: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.38: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.07:1 ✓ Pass
Take it with you
:root {
--grey-50: #f5f7f9;
--grey-100: #eaedf2;
--grey-200: #d6dbe4;
--grey-300: #bec4d1;
--grey-400: #a1a8b6;
--grey-500: #858c9b;
--grey-600: #6b7280;
--grey-700: #555b68;
--grey-800: #404550;
--grey-900: #2c3039;
--grey-950: #181b20;
}
The short answer
Grey (#6b7280) works with white text. The ratio is 4.83:1, above the 4.5:1 that WCAG AA asks for, so you can use it as a button or banner colour with white lettering.
Grey shades and their contrast
| Step | Colour | On white | On dark |
|---|---|---|---|
| 50 | #f5f7f9 | 1.07:1 ✕ | 17.58:1 ✓ AA |
| 100 | #eaedf2 | 1.17:1 ✕ | 16.09:1 ✓ AA |
| 200 | #d6dbe4 | 1.39:1 ✕ | 13.59:1 ✓ AA |
| 300 | #bec4d1 | 1.75:1 ✕ | 10.8:1 ✓ AA |
| 400 | #a1a8b6 | 2.39:1 ✕ | 7.91:1 ✓ AA |
| 500 | #858c9b | 3.38:1 large only | 5.59:1 ✓ AA |
| 600 (yours) | #6b7280 | 4.83:1 ✓ AA | 3.91:1 large only |
| 700 | #555b68 | 6.81:1 ✓ AA | 2.77:1 ✕ |
| 800 | #404550 | 9.61:1 ✓ AA | 1.96:1 ✕ |
| 900 | #2c3039 | 13.22:1 ✓ AA | 1.43:1 ✕ |
| 950 | #181b20 | 17.26:1 ✓ AA | 1.09:1 ✕ |
Questions about grey
Does grey work with white text?
Yes. Grey (#6b7280) has a contrast ratio of 4.83:1 with white, which meets the 4.5:1 WCAG AA asks for.
Does black text work on grey?
No. Black on #6b7280 is 4.34:1, which is below 4.5:1. Use a lighter or darker shade instead.
Which shade of grey should I use for links on a white page?
Use a step that reaches 4.5:1 on white. For grey that is step 600 (#6b7280), at 4.83:1.
Other 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.