chocolate color code
The hex code for chocolate is #D2691E, which is rgb(210, 105, 30) in RGB and cmyk(0%, 50%, 86%, 18%) in CMYK. It's a medium, rich orange. It is a built-in CSS colour, so you can also write it as “chocolate”.
Build a full palette from it: open in the palette generator.
Move the sliders to find a lighter, darker or softer chocolate; the codes update as you go.
Chocolate colour codes
| HEX | #D2691E |
|---|---|
| RGB | rgb(210, 105, 30) |
| HSL | hsl(25, 75%, 47%) |
| HSV / HSB | hsv(25, 86%, 82%) |
| CMYK | cmyk(0%, 50%, 86%, 18%) |
| Decimal | 13789470 |
| CSS keyword | chocolate |
About chocolate
Chocolate sits at a hue of 25° on the colour wheel, with 75% saturation and 47% lightness. That makes it a warm colour: warm colours feel energetic and inviting and appear to come forward on a page.
For text, black reads better on chocolate. Chocolate as text on a white background has a contrast ratio of 3.63:1, which fails the WCAG AA rule for body text (4.5:1) and passes the 3:1 rule for large text. On black it is 5.77:1, which passes AA for body text.
Tints and shades of chocolate
Tints mix chocolate with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.
Colours that go with chocolate
Complementary — opposite on the colour wheel: maximum contrast
Analogous — neighbours 30° either side: calm and natural
Triadic — three hues 120° apart: lively but balanced
Split complementary — the two neighbours of the complement: contrast with less tension
Tetradic — four hues 90° apart: rich, use one as the main colour
Chocolate text contrast
| Combination | Ratio | AA normal (4.5:1) | AA large (3:1) | AAA (7:1) |
|---|---|---|---|---|
| chocolate on white | 3.63:1 | fail | pass | fail |
| chocolate on black | 5.77:1 | pass | pass | fail |
Check chocolate against any other colour in the contrast checker.
How chocolate looks with colour blindness
Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.
Use chocolate in code
.chocolate {
color: chocolate;
background-color: #d2691e;
border-color: rgb(210, 105, 30);
}Frequently asked questions
What is the hex code for chocolate?
Chocolate is #D2691E (lowercase #d2691e). It's the official value of the CSS keyword “chocolate”.
What is chocolate in RGB, HSL and CMYK?
RGB: rgb(210, 105, 30). HSL: hsl(25, 75%, 47%). CMYK: cmyk(0%, 50%, 86%, 18%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.
What colours go with chocolate?
Its complementary colour is #1E87D2 (close to steel blue), which gives the strongest contrast. For a calmer look, use the analogous colours #D21E2D and #D2C31E, or the triadic pair #1ED269 and #691ED2. Tints and shades of chocolate itself always work together.
Is chocolate a warm or cool colour?
Chocolate has a hue of 25°, which makes it warm.
Should I use black or white text on chocolate?
Black. Black text on chocolate has a contrast ratio of 5.77:1 and white text has 3.63:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
How do I use chocolate in CSS?
Write color: chocolate; or color: #d2691e; — both give the same colour. Named colours work in every browser.