Chocolate Hex Code #D2691E
Chocolate is a medium, vivid brown with the hex code #D2691E. In RGB it is 210, 105, 30, and in HSL it is 25°, 75%, 47%. It is one of the 148 named colors in CSS, so you can write “chocolate” instead of the hex code.
- HEX
- #D2691E
- RGB
- rgb(210, 105, 30)
- HSL
- hsl(25, 75%, 47%)
- HSV
- hsv(25°, 86%, 82%)
- CMYK
- cmyk(0%, 50%, 86%, 18%)
- CSS name
- chocolate
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Chocolate
On a white background Chocolate has a contrast ratio of 3.63:1 (AA Large), and on black 5.78:1 (AA). Black text is the better choice on top of it.
It sits on the warm side of the color wheel, a range that tends to feel energetic and appears to advance toward the viewer.
Brown is earthy and warm. It suits natural, rustic and food-related designs, and works as a softer, more grounded alternative to black.
Good to know: CSS chocolate (#d2691e) is a warm, orange-leaning brown, lighter than the name suggests. For deeper browns, see saddlebrown (#8b4513) and brown (#a52a2a).
Shades and tints of Chocolate
Tints mix Chocolate with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Color harmonies for Chocolate
These schemes are calculated from Chocolate on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.
On the artist’s RYB wheel, the complement of Chocolate is #1E7FD2, close to the named color Cornflower Blue.
Chocolate contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Chocolate scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 3.63:1 | ✕ Fail | ✓ Pass | ✕ Fail | ✕ Fail |
| Black (#000000) | 5.78:1 | ✓ Pass | ✓ Pass | ✕ Fail | ✓ Pass |
Chocolate and color blindness
These are approximate previews of how Chocolate can look with the main types of color vision deficiency.
Chocolate changes noticeably.
Chocolate changes noticeably.
Chocolate changes noticeably.
Chocolate changes noticeably.
Gradients with Chocolate
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Chocolate to a lighter tint
background: linear-gradient(135deg, #d2691e 0%, #edc3a5 100%); Chocolate to its analogous neighbour
background: linear-gradient(135deg, #d2691e 0%, #d2c31e 100%); Chocolate to its complement
background: linear-gradient(135deg, #d2691e 0%, #1e87d2 100%); Colors similar to Chocolate
How each close match differs from Chocolate.
Use Chocolate in code
.element {
color: #d2691e;
background-color: #d2691e;
border-color: chocolate; /* chocolate is a valid CSS color name */
} :root {
--color-chocolate: #d2691e;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#d2691e] text-[#d2691e] border-[#d2691e]"></div>
/* Tailwind v4 theme color */
@theme {
--color-chocolate: #d2691e;
} Chocolate questions
What is the hex code for Chocolate?
The hex code for Chocolate is #D2691E. In RGB that is rgb(210, 105, 30), and in HSL it is hsl(25, 75%, 47%).
What is the complementary color of Chocolate?
On the RGB (screen) color wheel, the complement of Chocolate is #1E87D2, which is close to Cornflower Blue. On the artist’s RYB wheel it is #1E7FD2, close to Cornflower Blue.
Should I use white or black text on Chocolate?
Black text. It has a contrast ratio of 5.78:1 against Chocolate, which is WCAG AA. The other option scores 3.63:1.
Is Chocolate accessible as a text color on white?
Only for large text. Chocolate on white scores 3.63:1, which passes WCAG AA for large text (3:1) but not for normal text (4.5:1).
What are darker and lighter shades of Chocolate?
Mixing Chocolate with black gives #A85418, #7E3F12, #542A0C, #2A1506 (20% to 80% black). Mixing it with white gives #DB874B, #E4A578, #EDC3A5, #F6E1D2 (20% to 80% white).