About Crimson
Crimson (crimson) is a medium, vivid red with the hex code #dc143c, or rgb(220, 20, 60). In HSL it sits at a hue of 348°, 83% saturation and 47% lightness. It is one of the 148 named colors every browser understands, so you can write color: crimson; instead of the hex value.
Using Crimson for text and backgrounds
| Pairing | Contrast ratio | WCAG |
|---|---|---|
| Crimson text on white | 4.99 : 1 | AA |
| Crimson text on black | 4.21 : 1 | AA large text only |
On a crimson background, use white text (4.99 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.
CSS
.element {
color: crimson; /* or #dc143c */
background-color: #dc143c;
border: 1px solid rgb(220 20 60 / 50%);
}
Similar named colors
Fire Brick (#b22222), Brown (#a52a2a), Red (#ff0000), Medium Violet Red (#c71585), Indian Red (#cd5c5c), Orange Red (#ff4500).