CSS named color

Crimson #DC143C

crimson rgb(220, 20, 60)

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)—
RGBrgb(220, 20, 60)
RGBArgba(220, 20, 60, 1)
8-digit HEX#DC143CFF
HSLhsl(348, 83%, 47%)
HSV / HSB348°, 91%, 86%
CMYK0%, 91%, 73%, 14%
RGB 0–10.863, 0.078, 0.235
Decimal14423100
CSS keywordcrimson

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

TextBackgroundRatioWCAG 2.x
White Crimson 4.98:1AA
Black Crimson 4.20:1AA 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.

Copied!