Accessible purple color palette
Creative and premium, and usually good with white text.
Your brand colour
Try an example
What your colour can do
#7c3aed
Sits at step 600 of your scale
- ✓ PassWhite text on your colour: 5.7:1. Fine for buttons and banners.
- ✕ FailBlack text on your colour: 3.69: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
#f7f5ff
Black 19.46
100
#edeaff
Black 17.81
200
#dcd4ff
Black 14.9
300
#c6b8ff
Black 11.7
400
#ac93ff
Black 8.37
500
#9569ff
Black 5.74
600 (your colour)
#7c3aed
White 5.7
700
#6724cd
White 7.75
800
#5012a4
White 10.69
900
#39047a
White 14.26
950
#21004e
White 17.88
See the contrast numbers for every step
| Step | Colour | On white | On dark (#111111) |
|---|---|---|---|
| 50 | #f7f5ff | 1.08:1 ✕ | 17.5:1 ✓ AA |
| 100 | #edeaff | 1.18:1 ✕ | 16.02:1 ✓ AA |
| 200 | #dcd4ff | 1.41:1 ✕ | 13.4:1 ✓ AA |
| 300 | #c6b8ff | 1.79:1 ✕ | 10.52:1 ✓ AA |
| 400 | #ac93ff | 2.51:1 ✕ | 7.53:1 ✓ AA |
| 500 | #9569ff | 3.66:1 large text only | 5.16:1 ✓ AA |
| 600 (yours) | #7c3aed | 5.7:1 ✓ AA | 3.31:1 large text only |
| 700 | #6724cd | 7.75:1 ✓ AA | 2.44:1 ✕ |
| 800 | #5012a4 | 10.69:1 ✓ AA | 1.77:1 ✕ |
| 900 | #39047a | 14.26:1 ✓ AA | 1.32:1 ✕ |
| 950 | #21004e | 17.88:1 ✓ AA | 1.06: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 6005.7:1 ✓ Pass
- Read the details
Links and text on white
Coloured text on a white page needs 4.5:1 too.
600 on white5.7: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.16: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.66: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.57:1 ✓ Pass
Take it with you
:root {
--purple-50: #f7f5ff;
--purple-100: #edeaff;
--purple-200: #dcd4ff;
--purple-300: #c6b8ff;
--purple-400: #ac93ff;
--purple-500: #9569ff;
--purple-600: #7c3aed;
--purple-700: #6724cd;
--purple-800: #5012a4;
--purple-900: #39047a;
--purple-950: #21004e;
}
The short answer
Purple (#7c3aed) works with white text. The ratio is 5.7: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.
Purple shades and their contrast
| Step | Colour | On white | On dark |
|---|---|---|---|
| 50 | #f7f5ff | 1.08:1 ✕ | 17.5:1 ✓ AA |
| 100 | #edeaff | 1.18:1 ✕ | 16.02:1 ✓ AA |
| 200 | #dcd4ff | 1.41:1 ✕ | 13.4:1 ✓ AA |
| 300 | #c6b8ff | 1.79:1 ✕ | 10.52:1 ✓ AA |
| 400 | #ac93ff | 2.51:1 ✕ | 7.53:1 ✓ AA |
| 500 | #9569ff | 3.66:1 large only | 5.16:1 ✓ AA |
| 600 (yours) | #7c3aed | 5.7:1 ✓ AA | 3.31:1 large only |
| 700 | #6724cd | 7.75:1 ✓ AA | 2.44:1 ✕ |
| 800 | #5012a4 | 10.69:1 ✓ AA | 1.77:1 ✕ |
| 900 | #39047a | 14.26:1 ✓ AA | 1.32:1 ✕ |
| 950 | #21004e | 17.88:1 ✓ AA | 1.06:1 ✕ |
Questions about purple
Does purple work with white text?
Yes. Purple (#7c3aed) has a contrast ratio of 5.7:1 with white, which meets the 4.5:1 WCAG AA asks for.
Does black text work on purple?
No. Black on #7c3aed is 3.69:1, which is below 4.5:1. Use a lighter or darker shade instead.
Which shade of purple should I use for links on a white page?
Use a step that reaches 4.5:1 on white. For purple that is step 600 (#7c3aed), at 5.7: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.