Chocolate hex and RGB values
The CSS keyword chocolate gives you #D2691E, or rgb(210, 105, 30).
Chocolate is a medium orange-brown that works as a warm accent. A large title and a small form hint can need different contrast decisions on the same background.
Compare black and white text
| Text / background | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| #000000 / #D2691E | 5.78:1 | Pass | Pass | Fail | Pass |
| #FFFFFF / #D2691E | 3.63:1 | Fail | Pass | Fail | Fail |
Black text has the higher contrast on chocolate: 5.78:1. The table compares both options against all four text thresholds, using the unrounded values for pass or fail.
Try chocolate in a layout
The CSS sample below uses black text on #D2691E. Preview a 16 px label and a 24 px heading to compare normal and large text. Swap the colors to try chocolate as the text color; the ratio stays the same.
.sample {
background: #D2691E;
color: #000000;
}Copy the exact color
Use the converter to copy HEX, RGB or HSL. If you edit in HSL, the final value is rounded to eight-bit sRGB so the preview and exported color agree. For text over an image, gradient or translucent layer, check the finished design separately.