Accessible color palettes, tested for WCAG 2.2
8 interface palettes with matching light and dark modes, and 3 color-blind-safe palettes for charts. Every text and interface pairing below is calculated when this page is built, so the numbers you see are the numbers you get. Need a palette from your own brand color? Use the accessible color palette generator.
Reviewed by Khushwant Parihar, CPACC
Updated
UI palettes (light and dark)
Each palette defines eight roles. Use them only in the listed pairs: body and muted text on the background or surface, button text on the primary color, links on the background.
Ocean
Trustworthy blue for SaaS, finance and dashboards. Lowest text contrast in either mode: 6.70:1.
- Background#FFFFFF
- Surface#F1F5F9
- Text#0F172A
- Muted text#475569
- Primary#1D4ED8
- On primary#FFFFFF
- Link#1D4ED8
- Border#64748B
- Background#0B1220
- Surface#16213A
- Text#F1F5F9
- Muted text#A3B1C6
- Primary#60A5FA
- On primary#0B1220
- Link#93C5FD
- Border#7C8BA3
Contrast checks for Ocean
| Pairing | Light | Dark | WCAG target |
|---|---|---|---|
| Body text on background | 17.85:1 (Lc 105) | 17.09:1 (Lc 100) | 7:1, SC 1.4.6 |
| Body text on surface | 16.30:1 (Lc 98) | 14.60:1 (Lc 99) | 7:1, SC 1.4.6 |
| Muted text on background | 7.58:1 (Lc 86) | 8.61:1 (Lc 59) | 4.5:1, SC 1.4.3 |
| Muted text on surface | 6.92:1 (Lc 80) | 7.36:1 (Lc 57) | 4.5:1, SC 1.4.3 |
| Button text on primary | 6.70:1 (Lc 87) | 7.36:1 (Lc 54) | 4.5:1, SC 1.4.3 |
| Link on background | 6.70:1 (Lc 82) | 10.38:1 (Lc 69) | 4.5:1, SC 1.4.3 |
| Primary button against background | 6.70:1 (Lc 82) | 7.36:1 (Lc 52) | 3:1, SC 1.4.11 |
| Control border on background | 4.76:1 (Lc 73) | 5.42:1 (Lc 39) | 3:1, SC 1.4.11 |
/* ocean palette from accessibility.build/accessible-color-palettes */
:root {
--color-bg: #FFFFFF;
--color-surface: #F1F5F9;
--color-text: #0F172A;
--color-muted: #475569;
--color-primary: #1D4ED8;
--color-on-primary: #FFFFFF;
--color-link: #1D4ED8;
--color-border: #64748B;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B1220;
--color-surface: #16213A;
--color-text: #F1F5F9;
--color-muted: #A3B1C6;
--color-primary: #60A5FA;
--color-on-primary: #0B1220;
--color-link: #93C5FD;
--color-border: #7C8BA3;
}
}Forest
Calm green for sustainability, health and outdoor brands. Lowest text contrast in either mode: 5.02:1.
- Background#FFFFFF
- Surface#F0FDF4
- Text#052E16
- Muted text#3F5D4B
- Primary#15803D
- On primary#FFFFFF
- Link#166534
- Border#5F7A68
- Background#0A1A10
- Surface#13291B
- Text#ECFDF5
- Muted text#A7C4B2
- Primary#4ADE80
- On primary#052E16
- Link#86EFAC
- Border#6E8F7A
Contrast checks for Forest
| Pairing | Light | Dark | WCAG target |
|---|---|---|---|
| Body text on background | 14.91:1 (Lc 102) | 17.07:1 (Lc 103) | 7:1, SC 1.4.6 |
| Body text on surface | 14.24:1 (Lc 98) | 14.65:1 (Lc 101) | 7:1, SC 1.4.6 |
| Muted text on background | 7.29:1 (Lc 85) | 9.57:1 (Lc 66) | 4.5:1, SC 1.4.3 |
| Muted text on surface | 6.97:1 (Lc 82) | 8.22:1 (Lc 64) | 4.5:1, SC 1.4.3 |
| Button text on primary | 5.02:1 (Lc 80) | 8.55:1 (Lc 68) | 4.5:1, SC 1.4.3 |
| Link on background | 7.13:1 (Lc 84) | 12.80:1 (Lc 83) | 4.5:1, SC 1.4.3 |
| Primary button against background | 5.02:1 (Lc 74) | 10.32:1 (Lc 70) | 3:1, SC 1.4.11 |
| Control border on background | 4.70:1 (Lc 73) | 5.03:1 (Lc 37) | 3:1, SC 1.4.11 |
/* forest palette from accessibility.build/accessible-color-palettes */
:root {
--color-bg: #FFFFFF;
--color-surface: #F0FDF4;
--color-text: #052E16;
--color-muted: #3F5D4B;
--color-primary: #15803D;
--color-on-primary: #FFFFFF;
--color-link: #166534;
--color-border: #5F7A68;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A1A10;
--color-surface: #13291B;
--color-text: #ECFDF5;
--color-muted: #A7C4B2;
--color-primary: #4ADE80;
--color-on-primary: #052E16;
--color-link: #86EFAC;
--color-border: #6E8F7A;
}
}Sunset
Warm orange for food, travel and consumer apps. Lowest text contrast in either mode: 5.18:1.
- Background#FFFBF7
- Surface#FFF1E6
- Text#2A1406
- Muted text#6B4A36
- Primary#C2410C
- On primary#FFFFFF
- Link#9A3412
- Border#8A6A57
- Background#1A0F08
- Surface#2A1A10
- Text#FFF4EC
- Muted text#D2B4A0
- Primary#FB923C
- On primary#1A0F08
- Link#FDBA74
- Border#9A7A66
Contrast checks for Sunset
| Pairing | Light | Dark | WCAG target |
|---|---|---|---|
| Body text on background | 16.98:1 (Lc 102) | 17.39:1 (Lc 101) | 7:1, SC 1.4.6 |
| Body text on surface | 15.80:1 (Lc 97) | 15.48:1 (Lc 100) | 7:1, SC 1.4.6 |
| Muted text on background | 7.67:1 (Lc 85) | 9.66:1 (Lc 64) | 4.5:1, SC 1.4.3 |
| Muted text on surface | 7.14:1 (Lc 80) | 8.60:1 (Lc 63) | 4.5:1, SC 1.4.3 |
| Button text on primary | 5.18:1 (Lc 80) | 8.32:1 (Lc 59) | 4.5:1, SC 1.4.3 |
| Link on background | 7.10:1 (Lc 82) | 11.16:1 (Lc 72) | 4.5:1, SC 1.4.3 |
| Primary button against background | 5.03:1 (Lc 72) | 8.32:1 (Lc 57) | 3:1, SC 1.4.11 |
| Control border on background | 4.77:1 (Lc 72) | 4.79:1 (Lc 34) | 3:1, SC 1.4.11 |
/* sunset palette from accessibility.build/accessible-color-palettes */
:root {
--color-bg: #FFFBF7;
--color-surface: #FFF1E6;
--color-text: #2A1406;
--color-muted: #6B4A36;
--color-primary: #C2410C;
--color-on-primary: #FFFFFF;
--color-link: #9A3412;
--color-border: #8A6A57;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1A0F08;
--color-surface: #2A1A10;
--color-text: #FFF4EC;
--color-muted: #D2B4A0;
--color-primary: #FB923C;
--color-on-primary: #1A0F08;
--color-link: #FDBA74;
--color-border: #9A7A66;
}
}Berry
Bold purple for creative tools, education and events. Lowest text contrast in either mode: 6.98:1.
- Background#FFFFFF
- Surface#FAF5FF
- Text#1E1033
- Muted text#5B4B6E
- Primary#7E22CE
- On primary#FFFFFF
- Link#6B21A8
- Border#7A6A8C
- Background#140B1F
- Surface#221433
- Text#F5EEFF
- Muted text#C2B2D6
- Primary#C084FC
- On primary#140B1F
- Link#D8B4FE
- Border#8B7BA0
Contrast checks for Berry
| Pairing | Light | Dark | WCAG target |
|---|---|---|---|
| Body text on background | 17.84:1 (Lc 104) | 16.91:1 (Lc 98) | 7:1, SC 1.4.6 |
| Body text on surface | 16.63:1 (Lc 100) | 15.26:1 (Lc 97) | 7:1, SC 1.4.6 |
| Muted text on background | 7.85:1 (Lc 87) | 9.69:1 (Lc 64) | 4.5:1, SC 1.4.3 |
| Muted text on surface | 7.31:1 (Lc 82) | 8.75:1 (Lc 63) | 4.5:1, SC 1.4.3 |
| Button text on primary | 6.98:1 (Lc 88) | 7.24:1 (Lc 52) | 4.5:1, SC 1.4.3 |
| Link on background | 8.72:1 (Lc 89) | 10.83:1 (Lc 70) | 4.5:1, SC 1.4.3 |
| Primary button against background | 6.98:1 (Lc 83) | 7.24:1 (Lc 50) | 3:1, SC 1.4.11 |
| Control border on background | 4.92:1 (Lc 74) | 4.96:1 (Lc 35) | 3:1, SC 1.4.11 |
/* berry palette from accessibility.build/accessible-color-palettes */
:root {
--color-bg: #FFFFFF;
--color-surface: #FAF5FF;
--color-text: #1E1033;
--color-muted: #5B4B6E;
--color-primary: #7E22CE;
--color-on-primary: #FFFFFF;
--color-link: #6B21A8;
--color-border: #7A6A8C;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140B1F;
--color-surface: #221433;
--color-text: #F5EEFF;
--color-muted: #C2B2D6;
--color-primary: #C084FC;
--color-on-primary: #140B1F;
--color-link: #D8B4FE;
--color-border: #8B7BA0;
}
}Clinic
Clean teal for healthcare, wellbeing and public services. Lowest text contrast in either mode: 5.47:1.
- Background#FFFFFF
- Surface#F0FDFA
- Text#042F2E
- Muted text#3D5C5A
- Primary#0F766E
- On primary#FFFFFF
- Link#115E59
- Border#5C7A78
- Background#071816
- Surface#102825
- Text#EEFDFB
- Muted text#A3C7C2
- Primary#2DD4BF
- On primary#042F2E
- Link#5EEAD4
- Border#6A8D88
Contrast checks for Clinic
| Pairing | Light | Dark | WCAG target |
|---|---|---|---|
| Body text on background | 14.47:1 (Lc 101) | 17.44:1 (Lc 104) | 7:1, SC 1.4.6 |
| Body text on surface | 13.87:1 (Lc 98) | 14.85:1 (Lc 102) | 7:1, SC 1.4.6 |
| Muted text on background | 7.30:1 (Lc 85) | 9.99:1 (Lc 68) | 4.5:1, SC 1.4.3 |
| Muted text on surface | 7.00:1 (Lc 82) | 8.51:1 (Lc 66) | 4.5:1, SC 1.4.3 |
| Button text on primary | 5.47:1 (Lc 82) | 7.77:1 (Lc 64) | 4.5:1, SC 1.4.3 |
| Link on background | 7.58:1 (Lc 86) | 12.33:1 (Lc 80) | 4.5:1, SC 1.4.3 |
| Primary button against background | 5.47:1 (Lc 77) | 9.80:1 (Lc 67) | 3:1, SC 1.4.11 |
| Control border on background | 4.66:1 (Lc 72) | 5.02:1 (Lc 37) | 3:1, SC 1.4.11 |
/* clinic palette from accessibility.build/accessible-color-palettes */
:root {
--color-bg: #FFFFFF;
--color-surface: #F0FDFA;
--color-text: #042F2E;
--color-muted: #3D5C5A;
--color-primary: #0F766E;
--color-on-primary: #FFFFFF;
--color-link: #115E59;
--color-border: #5C7A78;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #071816;
--color-surface: #102825;
--color-text: #EEFDFB;
--color-muted: #A3C7C2;
--color-primary: #2DD4BF;
--color-on-primary: #042F2E;
--color-link: #5EEAD4;
--color-border: #6A8D88;
}
}Civic
Serious red and navy for government, news and nonprofits. Lowest text contrast in either mode: 6.47:1.
- Background#FFFFFF
- Surface#F8FAFC
- Text#111827
- Muted text#4B5563
- Primary#B91C1C
- On primary#FFFFFF
- Link#1E3A8A
- Border#6B7280
- Background#0F1115
- Surface#1A1D24
- Text#F9FAFB
- Muted text#B4BAC5
- Primary#F87171
- On primary#0F1115
- Link#93C5FD
- Border#7D8593
Contrast checks for Civic
| Pairing | Light | Dark | WCAG target |
|---|---|---|---|
| Body text on background | 17.74:1 (Lc 105) | 18.08:1 (Lc 104) | 7:1, SC 1.4.6 |
| Body text on surface | 16.96:1 (Lc 101) | 16.14:1 (Lc 103) | 7:1, SC 1.4.6 |
| Muted text on background | 7.56:1 (Lc 86) | 9.69:1 (Lc 64) | 4.5:1, SC 1.4.3 |
| Muted text on surface | 7.22:1 (Lc 83) | 8.65:1 (Lc 63) | 4.5:1, SC 1.4.3 |
| Button text on primary | 6.47:1 (Lc 85) | 6.83:1 (Lc 51) | 4.5:1, SC 1.4.3 |
| Link on background | 10.36:1 (Lc 94) | 10.48:1 (Lc 69) | 4.5:1, SC 1.4.3 |
| Primary button against background | 6.47:1 (Lc 80) | 6.83:1 (Lc 49) | 3:1, SC 1.4.11 |
| Control border on background | 4.83:1 (Lc 74) | 5.08:1 (Lc 36) | 3:1, SC 1.4.11 |
/* civic palette from accessibility.build/accessible-color-palettes */
:root {
--color-bg: #FFFFFF;
--color-surface: #F8FAFC;
--color-text: #111827;
--color-muted: #4B5563;
--color-primary: #B91C1C;
--color-on-primary: #FFFFFF;
--color-link: #1E3A8A;
--color-border: #6B7280;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F1115;
--color-surface: #1A1D24;
--color-text: #F9FAFB;
--color-muted: #B4BAC5;
--color-primary: #F87171;
--color-on-primary: #0F1115;
--color-link: #93C5FD;
--color-border: #7D8593;
}
}Graphite
Neutral monochrome for portfolios, docs and developer tools. Lowest text contrast in either mode: 6.70:1.
- Background#FFFFFF
- Surface#F4F4F5
- Text#18181B
- Muted text#52525B
- Primary#18181B
- On primary#FFFFFF
- Link#1D4ED8
- Border#71717A
- Background#09090B
- Surface#18181B
- Text#FAFAFA
- Muted text#A1A1AA
- Primary#FAFAFA
- On primary#09090B
- Link#93C5FD
- Border#71717A
Contrast checks for Graphite
| Pairing | Light | Dark | WCAG target |
|---|---|---|---|
| Body text on background | 17.72:1 (Lc 105) | 19.06:1 (Lc 104) | 7:1, SC 1.4.6 |
| Body text on surface | 16.12:1 (Lc 98) | 16.97:1 (Lc 103) | 7:1, SC 1.4.6 |
| Muted text on background | 7.73:1 (Lc 87) | 7.76:1 (Lc 52) | 4.5:1, SC 1.4.3 |
| Muted text on surface | 7.03:1 (Lc 80) | 6.91:1 (Lc 51) | 4.5:1, SC 1.4.3 |
| Button text on primary | 17.72:1 (Lc 107) | 19.06:1 (Lc 103) | 4.5:1, SC 1.4.3 |
| Link on background | 6.70:1 (Lc 82) | 11.03:1 (Lc 69) | 4.5:1, SC 1.4.3 |
| Primary button against background | 17.72:1 (Lc 105) | 19.06:1 (Lc 104) | 3:1, SC 1.4.11 |
| Control border on background | 4.83:1 (Lc 74) | 4.12:1 (Lc 28) | 3:1, SC 1.4.11 |
/* graphite palette from accessibility.build/accessible-color-palettes */
:root {
--color-bg: #FFFFFF;
--color-surface: #F4F4F5;
--color-text: #18181B;
--color-muted: #52525B;
--color-primary: #18181B;
--color-on-primary: #FFFFFF;
--color-link: #1D4ED8;
--color-border: #71717A;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #09090B;
--color-surface: #18181B;
--color-text: #FAFAFA;
--color-muted: #A1A1AA;
--color-primary: #FAFAFA;
--color-on-primary: #09090B;
--color-link: #93C5FD;
--color-border: #71717A;
}
}Honey
Friendly amber with dark text, for retail and community sites. Lowest text contrast in either mode: 5.49:1.
- Background#FFFDF5
- Surface#FEF3C7
- Text#1C1917
- Muted text#57534E
- Primary#D97706
- On primary#1C1917
- Link#92400E
- Border#78716C
- Background#14110A
- Surface#241E10
- Text#FEF9EC
- Muted text#C9BFA6
- Primary#FBBF24
- On primary#1C1917
- Link#FCD34D
- Border#857B63
Contrast checks for Honey
| Pairing | Light | Dark | WCAG target |
|---|---|---|---|
| Body text on background | 17.17:1 (Lc 103) | 17.93:1 (Lc 104) | 7:1, SC 1.4.6 |
| Body text on surface | 15.71:1 (Lc 97) | 15.75:1 (Lc 102) | 7:1, SC 1.4.6 |
| Muted text on background | 7.49:1 (Lc 85) | 10.31:1 (Lc 68) | 4.5:1, SC 1.4.3 |
| Muted text on surface | 6.85:1 (Lc 79) | 9.06:1 (Lc 66) | 4.5:1, SC 1.4.3 |
| Button text on primary | 5.49:1 (Lc 44) | 10.48:1 (Lc 73) | 4.5:1, SC 1.4.3 |
| Link on background | 6.96:1 (Lc 83) | 13.07:1 (Lc 82) | 4.5:1, SC 1.4.3 |
| Primary button against background | 3.13:1 (Lc 57) | 11.29:1 (Lc 73) | 3:1, SC 1.4.11 |
| Control border on background | 4.71:1 (Lc 72) | 4.50:1 (Lc 32) | 3:1, SC 1.4.11 |
/* honey palette from accessibility.build/accessible-color-palettes */
:root {
--color-bg: #FFFDF5;
--color-surface: #FEF3C7;
--color-text: #1C1917;
--color-muted: #57534E;
--color-primary: #D97706;
--color-on-primary: #1C1917;
--color-link: #92400E;
--color-border: #78716C;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #14110A;
--color-surface: #241E10;
--color-text: #FEF9EC;
--color-muted: #C9BFA6;
--color-primary: #FBBF24;
--color-on-primary: #1C1917;
--color-link: #FCD34D;
--color-border: #857B63;
}
}Color-blind-safe chart palettes
For charts and maps, contrast with the background matters less than whether series can be told apart. Each row shows the palette as simulated for a color vision deficiency (Machado, Oliveira and Fernandes, 2009), and the closest pair of colors as a perceptual difference in OKLab. Above 0.1 is clearly different; below 0.05 is subtle.
Okabe-Ito
By Masataka Okabe and Kei Ito, Color Universal Design. The most widely used color-blind-safe categorical set. Yellow and sky blue are too light for text on white; use them for fills with dark outlines or labels.
| Vision | Colors | Closest pair |
|---|---|---|
| Normal vision | Orange and Vermillion: 0.156 (clear) | |
| Protanopia (no red cones) | Blue and Reddish purple: 0.095 (noticeable) | |
| Deuteranopia (no green cones) | Bluish green and Reddish purple: 0.075 (noticeable) | |
| Tritanopia (no blue cones) | Bluish green and Blue: 0.084 (noticeable) |
- Orange #E69F00
- Sky blue #56B4E9
- Bluish green #009E73
- Yellow #F0E442
- Blue #0072B2
- Vermillion #D55E00
- Reddish purple #CC79A7
- Black #000000
Paul Tol bright
By Paul Tol, SRON. Designed to stay distinct for people with color vision deficiency and in grayscale print. Keep series in this order.
| Vision | Colors | Closest pair |
|---|---|---|
| Normal vision | Cyan and Grey: 0.106 (clear) | |
| Protanopia (no red cones) | Cyan and Grey: 0.072 (noticeable) | |
| Deuteranopia (no green cones) | Cyan and Grey: 0.079 (noticeable) | |
| Tritanopia (no blue cones) | Blue and Green: 0.033 (subtle) |
- Blue #4477AA
- Red #EE6677
- Green #228833
- Yellow #CCBB44
- Cyan #66CCEE
- Purple #AA3377
- Grey #BBBBBB
Paul Tol muted
By Paul Tol, SRON. Nine softer colors for charts that need many series. Add direct labels or patterns once you pass five or six series.
| Vision | Colors | Closest pair |
|---|---|---|
| Normal vision | Rose and Purple: 0.129 (clear) | |
| Protanopia (no red cones) | Green and Rose: 0.094 (noticeable) | |
| Deuteranopia (no green cones) | Teal and Rose: 0.051 (noticeable) | |
| Tritanopia (no blue cones) | Rose and Purple: 0.093 (noticeable) |
- Indigo #332288
- Cyan #88CCEE
- Teal #44AA99
- Green #117733
- Olive #999933
- Sand #DDCC77
- Rose #CC6677
- Wine #882255
- Purple #AA4499
How these were tested
- Contrast ratios use the WCAG 2.2 relative luminance formula. Body text targets 7:1 (AAA), muted text and links 4.5:1 (1.4.3), and buttons and input borders 3:1 against the background (1.4.11).
- APCA Lc values are shown for reference only; APCA is not part of any WCAG standard. See APCA vs WCAG 2 contrast.
- Color vision simulations use the Machado 2009 model at full severity, the same model as our vision simulator. Simulations approximate; test with real users where you can.
- Never rely on color alone for meaning (1.4.1). Pair color with text, icons or patterns.
Make your own
Start from your brand color in the accessible color palette generator, check any pair in the contrast checker, and read the accessible color palette guide and color-blind-friendly design guide for the reasoning behind these choices.
Frequently Asked Questions
What makes a color palette accessible?
Its pairings meet WCAG contrast: at least 4.5:1 for normal text and 3:1 for large text, input borders and other interface boundaries (WCAG 2.2 AA). A palette is not accessible on its own; the pairs you actually put together are. These palettes list the intended pairs and the ratio each one achieves.
Are these palettes WCAG 2.2 AA compliant?
Every listed pairing meets or exceeds its WCAG 2.2 target, and body text meets AAA (7:1). Compliance still depends on how you use them: pair colors only as listed, do not put muted text on the primary color, and never use color as the only way to convey meaning (WCAG 1.4.1).
What are color-blind-friendly palettes for charts?
Okabe-Ito and Paul Tol's palettes were designed so series stay distinguishable for people with protanopia and deuteranopia, the most common color vision deficiencies. The tables show the closest pair of colors under each simulated deficiency. Still label series directly or add patterns, because no palette works for everyone.
Can I use these palettes commercially?
Yes. The UI palettes on this page are free to use in any project. Okabe-Ito and Paul Tol's palettes are published by their authors for free use; credit them where you can.