chocolate — #D2691E
#D2691E
rgb(210, 105, 30) · hsl(25, 75%, 47%) · CSS keyword chocolate
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| chocolate on white | 3.63:1 | — | AA |
| chocolate on black | 5.78:1 | AA | AA |
As a background, chocolate takes black text: 5.78:1 against 3.63:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: chocolate;
color: #d2691e;
color: rgb(210 105 30);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to chocolate
- indianred — #CD5C5C
- peru — #CD853F
- darkgoldenrod — #B8860B
- tomato — #FF6347
- sienna — #A0522D
- coral — #FF7F50
Frequently asked questions
What is the hex code for chocolate?
The hex code for chocolate is #D2691E — RGB 210, 105, 30.
Can I use chocolate for text?
Only for large text. chocolate reaches 3.63:1 against white — enough for the 3:1 of headings at 24px or 18.5px bold, short of the 4.5:1 body text needs.
Should text on chocolate be black or white?
Black — 5.78:1 against 3.63:1 the other way.
Other named colours
- coral — #FF7F50
- cornflowerblue — #6495ED
- cornsilk — #FFF8DC
- crimson — #DC143C
- cyan — #00FFFF
- darkblue — #00008B
- darkcyan — #008B8B
- darkgoldenrod — #B8860B
- darkgray — #A9A9A9
- darkgreen — #006400
- darkkhaki — #BDB76B
- darkmagenta — #8B008B
#D2691E in full — tints, shades and harmonies · All named colours · Colour reference