Chocolate color #D2691E
rgb(210, 105, 30) · oklch(63.4% 0.155 50.3)
Chocolate (#D2691E) is a medium, vivid, warm brown. It mixes 82% red, 41% green and 12% blue, with a perceived lightness of 63.4% in OKLCH. Black text reads best on it (5.77:1 vs 3.63:1). The closest other CSS color is Peru (#CD853F). For people with protanopia it shifts the most, toward #87780E.
Chocolate color codes
| HEX | |
|---|---|
| RGB | |
| HSL | |
| HSV / HSB | |
| OKLCH | |
| CMYK | |
| CSS keyword |
Click a value to copy it. Convert any other color with the color converter.
Shades, tints and tones of chocolate
Shades mix chocolate with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.
Tints (lighter)
Shades (darker)
Tones (muted)
Chocolate as a UI color scale (50–950)
An 11-step scale for design systems, with chocolate placed at step 500. Copy it as a Tailwind v4 theme below.
Colors that go with chocolate
Harmonies are computed on the OKLCH hue wheel, keeping chocolate’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.
Complementary
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is chocolate accessible? Contrast with white and black
3.63:1
AA fail AA large pass AAA fail
5.77:1
AA pass AA large pass AAA fail
- As a background, chocolate works best with black text.
- For body text on white, use the darker variant (the closest color that passes AA, 4.5:1).
How chocolate looks with color blindness
Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.
#87780e Red-blind. Reds look dark and brownish; red and green are easily confused.
#a18f1b Green-blind, the most common strong form. Red, green, orange and brown look similar.
#e7515b Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#868686 Total color blindness, very rare. Only lightness differences are visible.
Colors similar to chocolate
The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).
Use chocolate in CSS and Tailwind
CSS custom properties
:root {
--chocolate: #d2691e;
--chocolate-rgb: 210 105 30;
}
.text-chocolate { color: var(--chocolate); }
.bg-chocolate { background-color: var(--chocolate); }
Tailwind v4 theme
@theme {
--color-chocolate-50: #f8f6f6;
--color-chocolate-100: #f1ebe9;
--color-chocolate-200: #ead6cb;
--color-chocolate-300: #ebb394;
--color-chocolate-400: #ed803b;
--color-chocolate-500: #d2691e;
--color-chocolate-600: #a95316;
--color-chocolate-700: #84441a;
--color-chocolate-800: #65381c;
--color-chocolate-900: #4c2d1a;
--color-chocolate-950: #2c1b11;
}
Make a gradient from chocolate: open the gradient generator.
Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.