Chocolate #D2691E
Chocolate is one of the named colours in CSS, written chocolate. Black text reaches 5.78:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | chocolate |
|---|---|
| HEX | #D2691E |
| RGB | rgb(210 105 30) |
| HSL | hsl(25 75% 47%) |
| OKLCH | oklch(63.4% 0.155 50.3) |
| White text | 3.63:1 · body text AA Fail |
| Black text | 5.78:1 · body text AA Pass |
Colours that go with Chocolate
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is English Red (#D96629), nearly identical. These are the colours Wada paired it with, ranked by their contrast with Chocolate itself.
| Colour | HEX | Contrast with Chocolate | Body text AA |
|---|---|---|---|
| Black | #111314 | 5.13:1 | Pass |
| Violet Blue | #40456A | 2.54:1 | Fail |
| Ivory Buff | #EBD3A2 | 2.49:1 | Fail |
| Cobalt Green | #96D1AA | 2.08:1 | Fail |
| Light Glaucous Blue | #A5C8D1 | 2.04:1 | Fail |
| Fawn | #D1B0A7 | 1.81:1 | Fail |
| Ochraceous Salmon | #D8A37B | 1.63:1 | Fail |
| Scarlet | #CB2F43 | 1.44:1 | Fail |
| Raw Sienna | #BB7125 | 1.05:1 | Fail |
| Peacock Blue | #00939B | 1.02:1 | Fail |
| Cerulian Blue | #0093A5 | 1.01:1 | Fail |
Palettes with English Red
Shades and tints of Chocolate
Nine lightness steps in OKLCH that keep the hue of Chocolate. Chroma is reduced only where sRGB cannot show it.
- 100#FFF2EB
- 200#FFDDCA
- 300#FFBD98
- 400#FE904D
- 500#DB7129
- 600#B15200
- 700#873D00
- 800#5F2900
- 900#391600
:root {
--chocolate-100: #FFF2EB;
--chocolate-200: #FFDDCA;
--chocolate-300: #FFBD98;
--chocolate-400: #FE904D;
--chocolate-500: #DB7129;
--chocolate-600: #B15200;
--chocolate-700: #873D00;
--chocolate-800: #5F2900;
--chocolate-900: #391600;
}
Text that keeps Chocolate on screen
Text #000000 on #D2691E reaches 5.78:1, which passes WCAG AA for body text. Check it on a dashboard