CSS named color
Crimson #DC143C
Crimson is a red with the hex code #DC143C, which converts to rgb(220, 20, 60). Open #DC143C in the converter to tweak it.
Crimson color values
| HEX | #DC143C |
|---|---|
| HEX (shorthand) | — |
| RGB | rgb(220, 20, 60) |
| RGBA | rgba(220, 20, 60, 1) |
| 8-digit HEX | #DC143CFF |
| HSL | hsl(348, 83%, 47%) |
| HSV / HSB | 348°, 91%, 86% |
| CMYK | 0%, 91%, 73%, 14% |
| RGB 0–1 | 0.863, 0.078, 0.235 |
| Decimal | 14423100 |
| CSS keyword | crimson |
How #DC143C converts to RGB
Split the hex code into three pairs and read each pair as a base-16 number: DC → 220, 14 → 20, 3C → 60. That gives rgb(220, 20, 60). The step-by-step guide explains the math.
Shades of Crimson
Mixed toward black in 10% steps. Click a swatch to copy its hex.
Tints of Crimson
Mixed toward white in 10% steps.
Color harmonies
Hue rotations of Crimson 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
| Text | Background | Ratio | WCAG 2.x |
|---|---|---|---|
| White | Crimson | 4.98:1 | AA |
| Black | Crimson | 4.20:1 | AA Large only |
Use white text on a crimson background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.
Use Crimson in CSS
.element {
color: crimson; /* keyword */
background-color: #DC143C; /* hex */
border-color: rgb(220 20 60 / 50%); /* 50% transparent */
}
Need it semi-transparent? Append an alpha byte: #DC143C80 is Crimson at 50% opacity. See RGBA & transparency.
Similar named colors
FAQ
What is the HEX code for Crimson?
The CSS named color crimson is #DC143C in hexadecimal. In CSS you can write color: crimson; or color: #DC143C; — both produce the same pixel.
What is Crimson in RGB?
Crimson is rgb(220, 20, 60): red 220, green 20, blue 60 on the 0–255 scale. As normalized 0–1 floats that is (0.863, 0.078, 0.235).
Is white or black text more readable on Crimson?
White text is more readable. White on #DC143C has a contrast ratio of 4.98:1 (AA), black on #DC143C has 4.20:1 (AA Large only). WCAG AA needs 4.5:1 for normal text.