Chocolate color (#D2691E)
Chocolate is one of the 148 CSS named colors. Use the keyword chocolate
anywhere CSS accepts a color, or its hex code #D2691E, which is rgb(210, 105, 30) in RGB.
It is a medium, vivid warm color with a hue angle of 25° on the HSL color wheel and a perceived lightness of 63% in OKLCH. On a chocolate background, black text gives the higher contrast at 5.77:1, which passes WCAG AA for normal text.
Chocolate color codes
| CSS name | chocolate |
|
|---|---|---|
| HEX | #D2691E |
|
| HEX (8-digit) | #D2691EFF |
|
| RGB | rgb(210, 105, 30) |
|
| HSL | hsl(25, 75%, 47%) |
|
| HSV / HSB | hsv(25, 86%, 82%) |
|
| OKLCH | oklch(63.4% 0.155 50.3) |
|
| CMYK | cmyk(0%, 50%, 85.7%, 17.6%) |
Contrast with white and black
WCAG 2 contrast ratios and APCA lightness contrast (Lc) for chocolate used as text and as a background.
Tints and shades of chocolate
Tints mix chocolate with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.
Tints
Shades
Colors that go with chocolate
Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.
Complementary
Analogous
Triadic
Split-Complementary
Chocolate with color blindness
Approximately how chocolate appears with each type of color vision deficiency. Test full designs with the color blindness simulator.
Using chocolate in CSS
.element {
color: chocolate;
background-color: #d2691e;
border-color: rgb(210 105 30 / 50%);
outline-color: oklch(63.4% 0.155 50.3);
}Similar named colors
See all shades of brown or browse every CSS color name.