Chocolate
Chocolate is a medium, rich color from the orange family. Hex code #D2691E.
Color codes
- CSS name
chocolate - HEX
#D2691E - RGB
rgb(210 105 30) - HSL
hsl(25 75% 47%) - HSB / HSV
hsb(25, 86%, 82%) - OKLCH
oklch(63.4% 0.155 50.3) - CMYK
cmyk(0%, 50%, 86%, 18%)
White text
3.63:1 · passes WCAG AA for large text only
Black text
5.77:1 · passes WCAG AA
Shades
Complementary
Analogous
Triadic
About this color
Chocolate in CSS and design
Chocolate is a medium, rich color from the orange family. Chocolate is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.
Use it in CSS by name or by any of its codes; these all give the same color:
color: chocolate;
color: #D2691E;
color: rgb(210 105 30);
color: hsl(25 75% 47%);For text on chocolate, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.
More tools
Work with this color
- Color picker and converterPick a color and get HEX, RGB, HSL, HSB, CMYK and OKLCH, plus shades and harmonies.
- Contrast checkerCheck text and background colors against WCAG AA and AAA, and fix failing ones.
- CSS color namesAll 148 named colors with hex codes, shades, contrast and matching palettes.
- Palette generatorBuild a color palette from harmony rules, with shades and CSS variables.
Frequently asked questions
What is the hex code for chocolate?
#D2691E. In CSS you can also use the keyword chocolate, which works in every browser.
What is chocolate in RGB and HSL?
In RGB it is rgb(210 105 30), in HSL hsl(25 75% 47%). For print, cmyk(0%, 50%, 86%, 18%) is a starting point, but CMYK depends on paper and ink, so check with your printer.
Should I use black or white text on chocolate?
Black text works better: it has a contrast ratio of 5.77:1 and passes WCAG AA. White text reaches 3.63:1.
Which colors go with chocolate?
Its complementary color is #0797C8, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #D85D62 and #B28116. The palette generator builds more combinations.