CSS named color

Chocolate #D2691E

chocolate rgb(210, 105, 30)

Chocolate is a orange with the hex code #D2691E, which converts to rgb(210, 105, 30). Open #D2691E in the converter to tweak it.

Chocolate color values

HEX#D2691E
HEX (shorthand)—
RGBrgb(210, 105, 30)
RGBArgba(210, 105, 30, 1)
8-digit HEX#D2691EFF
HSLhsl(25, 75%, 47%)
HSV / HSB25°, 86%, 82%
CMYK0%, 50%, 86%, 18%
RGB 0–10.824, 0.412, 0.118
Decimal13789470
CSS keywordchocolate

How #D2691E converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: D2 → 210, 69 → 105, 1E → 30. That gives rgb(210, 105, 30). The step-by-step guide explains the math.

Shades of Chocolate

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of Chocolate

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of Chocolate on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

Complementary

Analogous

Split-complementary

Triadic

Tetradic (square)

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White Chocolate 3.63:1AA Large only
Black Chocolate 5.77:1AA

Use black text on a chocolate background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use Chocolate in CSS

.element {
  color: chocolate;                         /* keyword */
  background-color: #D2691E;            /* hex */
  border-color: rgb(210 105 30 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #D2691E80 is Chocolate at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for Chocolate?

The CSS named color chocolate is #D2691E in hexadecimal. In CSS you can write color: chocolate; or color: #D2691E; — both produce the same pixel.

What is Chocolate in RGB?

Chocolate is rgb(210, 105, 30): red 210, green 105, blue 30 on the 0–255 scale. As normalized 0–1 floats that is (0.824, 0.412, 0.118).

Is white or black text more readable on Chocolate?

Black text is more readable. White on #D2691E has a contrast ratio of 3.63:1 (AA Large only), black on #D2691E has 5.77:1 (AA). WCAG AA needs 4.5:1 for normal text.

Copied!