100% free no uploads no sign-up

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”.

#D2691Echocolate
White text: 3.63:1 large text onlyBlack text: 5.77:1 ✓ AANearest name: chocolate

Move the sliders to find a lighter, darker or softer chocolate; the codes update as you go.

Chocolate colour codes

HEX#D2691E
RGBrgb(210, 105, 30)
HSLhsl(25, 75%, 47%)
HSV / HSBhsv(25, 86%, 82%)
CMYKcmyk(0%, 50%, 86%, 18%)
Decimal13789470
CSS keywordchocolate

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.

#FBF0E9#F6E1D2#F2D2BC#EDC3A5#E9B48F#E4A578#E09662#DB874B#D77835
chocolate #D2691E
#BD5F1B#A85418#934A15#7E3F12#69350F#542A0C#3F2009#2A1506#150B03

Colours that go with chocolate

Complementary — opposite on the colour wheel: maximum contrast

#D2691E#1E87D2

Analogous — neighbours 30° either side: calm and natural

#D21E2D#D2691E#D2C31E

Triadic — three hues 120° apart: lively but balanced

#D2691E#1ED269#691ED2

Split complementary — the two neighbours of the complement: contrast with less tension

#D2691E#1ED2C3#1E2DD2

Tetradic — four hues 90° apart: rich, use one as the main colour

#D2691E#2DD21E#1E87D2#C31ED2

Chocolate text contrast

CombinationRatioAA normal (4.5:1)AA large (3:1)AAA (7:1)
chocolate on white3.63:1failpassfail
chocolate on black5.77:1passpassfail

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.

normal #D2691Eprotanopia #87780Edeuteranopia #A18F1Btritanopia #E7515B

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.

Colours similar to chocolate