Free Accessible CSS Gradient Generator

← All Colors
#DC143C Crimson

Crimson Hex Code #DC143C

Crimson is a medium, vivid red with the hex code #DC143C. In RGB it is 220, 20, 60, and in HSL it is 348°, 83%, 47%. It is one of the 148 named colors in CSS, so you can write “crimson” instead of the hex code.

HEX
#DC143C
RGB
rgb(220, 20, 60)
HSL
hsl(348, 83%, 47%)
HSV
hsv(348°, 91%, 86%)
CMYK
cmyk(0%, 91%, 73%, 14%)
CSS name
crimson

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Crimson

On a white background Crimson has a contrast ratio of 4.99:1 (AA), and on black 4.21:1 (AA Large). White text is the better choice on top of it.

It sits on the warm side of the color wheel, a range that tends to feel energetic and appears to advance toward the viewer.

Red draws attention and signals urgency, which is why it is common for alerts, errors and sale tags. Because people strongly associate it with warnings, use it sparingly for anything that is not an alert.

Good to know: Crimson (#dc143c) is a deep red with a slight pink tint: its blue channel is 60, where pure red (#ff0000) has none. It is a common choice when pure red feels too harsh.

Shades and tints of Crimson

Tints mix Crimson with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Crimson

These schemes are calculated from Crimson on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Crimson is #30DC14, close to the named color Lime Green.

Crimson contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Crimson scores against white and black.

Contrast of Crimson with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 4.99:1 ✓ Pass ✓ Pass ✕ Fail ✓ Pass
Black (#000000) 4.21:1 ✕ Fail ✓ Pass ✕ Fail ✕ Fail
Aa White text on Crimson4.99:1
Aa Black text on Crimson4.21:1

Crimson and color blindness

These are approximate previews of how Crimson can look with the main types of color vision deficiency.

Protanopia #5C553B

Crimson changes noticeably.

Deuteranopia #8B7E35

Crimson changes noticeably.

Tritanopia #F20029

Crimson shifts slightly.

Achromatopsia #6F6F6F

Crimson changes noticeably.

Gradients with Crimson

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Crimson to a lighter tint

background: linear-gradient(135deg, #dc143c 0%, #f1a1b1 100%);

Crimson to its analogous neighbour

background: linear-gradient(135deg, #dc143c 0%, #dc5014 100%);

Crimson to its complement

background: linear-gradient(135deg, #dc143c 0%, #14dcb4 100%);

Colors similar to Crimson

How each close match differs from Crimson.

More red colors →

Use Crimson in code

CSS
.element {
  color: #dc143c;
  background-color: #dc143c;
  border-color: crimson;   /* crimson is a valid CSS color name */
}
CSS variable
:root {
  --color-crimson: #dc143c;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#dc143c] text-[#dc143c] border-[#dc143c]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-crimson: #dc143c;
}

Crimson questions

What is the hex code for Crimson?

The hex code for Crimson is #DC143C. In RGB that is rgb(220, 20, 60), and in HSL it is hsl(348, 83%, 47%).

What is the complementary color of Crimson?

On the RGB (screen) color wheel, the complement of Crimson is #14DCB4, which is close to Turquoise. On the artist’s RYB wheel it is #30DC14, close to Lime Green.

Should I use white or black text on Crimson?

White text. It has a contrast ratio of 4.99:1 against Crimson, which is WCAG AA. The other option scores 4.21:1.

Is Crimson accessible as a text color on white?

Yes. Crimson on white scores 4.99:1, which passes WCAG AA for normal text (4.5:1).

What are darker and lighter shades of Crimson?

Mixing Crimson with black gives #B01030, #840C24, #580818, #2C040C (20% to 80% black). Mixing it with white gives #E34363, #EA728A, #F1A1B1, #F8D0D8 (20% to 80% white).

More color tools