Chocolate
Hex #D2691E, rgb(210 105 30). A brown CSS named color.
Open in palette generatorChocolate color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Chocolate
Chocolate is a medium saturated brown with the hex code #D2691E. In RGB it is made of 210 red, 105 green and 30 blue; in HSL its hue is 25°, with 75% saturation and 47% lightness. Its perceptual lightness (OKLCH L) is 63.4%.
It is a CSS named color, so you can write "chocolate" anywhere CSS accepts a color. Against white it has a contrast ratio of 3.63:1 and against black 5.78:1, so black text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Chocolate mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Chocolate 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Chocolate
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Split complementary
Monochromatic
Contrast and readability
WCAG 2 contrast of Chocolate with white and black. The readable text color on Chocolate is black.
On white3.63:1
- AA fail
- AA Large pass
- AAA fail
- UI 3:1 pass
APCA Lc 63
On black5.78:1
- AA pass
- AA Large pass
- AAA fail
- UI 3:1 pass
APCA Lc -38
Test any pair in the contrast checker.
Color blindness preview
How Chocolate appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#87780E
- Deuteranopia#A18F1B
- Tritanopia#E7515B
- Protanomaly#A17711
- Deuteranomaly#AC8619
- Tritanomaly#DB6042
- Achromatopsia#868686
Colors similar to Chocolate
The closest named colors by perceptual difference (OKLab).
Use Chocolate in CSS and Tailwind
.chocolate {
color: chocolate; /* #D2691E */
background-color: rgb(210 105 30);
border-color: oklch(63.4% 0.155 50.3);
}/* Tailwind CSS v4: bg-chocolate-500, text-chocolate-700... */
@theme {
--color-chocolate-50: #FFF9F5;
--color-chocolate-100: #FDEADF;
--color-chocolate-200: #F7D4C1;
--color-chocolate-300: #F0B390;
--color-chocolate-400: #E0854F;
--color-chocolate-500: #D2691E;
--color-chocolate-600: #B85600;
--color-chocolate-700: #954400;
--color-chocolate-800: #783500;
--color-chocolate-900: #602C05;
--color-chocolate-950: #280D00;
}
<!-- or the exact color, no config -->
<div class="bg-[#D2691E] text-[#000000]">…</div>