Chocolate #D2691E

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.

Aa Sample text
Chocolate text on white
3.63:1 WCAG Lc 63.3 APCA AA large text only
Aa Sample text
Chocolate text on black
5.77:1 WCAG Lc -38.3 APCA Passes AA
Aa Sample text
White text on chocolate
3.63:1 WCAG Lc -68.8 APCA AA large text only
Aa Sample text
Black text on chocolate
5.77:1 WCAG Lc 40.7 APCA Passes AA

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.

Related tools