#D42222#D42222

#D42222 is a mid, highly saturated red. Relative luminance 0.153; OKLCH L 56.0% C 0.211 H 27.5°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#D42222
RGBrgb(212, 34, 34)
HSLhsl(0, 72%, 48%)
HSVhsv(0, 84%, 83%)
CMYKcmyk(0%, 84%, 84%, 16.9%)
CIE-LABlab(45.99, 65.56, 46.58)
CIE-LCHlch(45.99, 80.42, 35.40°)
OKLaboklab(55.98% 0.1869 0.0973)
OKLCHoklch(55.98% 0.211 27.5)
XYZxyz(28.0157, 15.2613, 2.9837)
Luminance0.1526 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42222 #22D4D4
analogous
#D4227B #D42222 #D47B22
triadic
#D42222 #22D422 #2222D4
tetradic
#D42222 #7BD422 #22D4D4 #7B22D4
square
#D42222 #7BD422 #22D4D4 #7B22D4
split-complementary
#D42222 #22D47B #227BD4
monochromatic
#6B1111 #9F1A1A #D42222 #E35050 #EB8585

Accessibility & contrast

On white

5.18
#D42222 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#D42222 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D42222
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42222#FFFFFF#000000##FFFFFF
##D422221.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F541F
Deuteranopia (green-blind)
#897A17
Tritanopia (blue-blind)
#EA0026
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #d42222;
/* rgb */ color: rgb(212, 34, 34);
/* oklch */ color: oklch(56.0% 0.211 27.5);
Tailwind
colors: {
  custom: {
    50: '#ec725f',
    500: '#d42222',
    950: '#000000',
  },
}
SCSS
$custom: #d42222;
$custom-light: #ec725f;
$custom-dark: #000000;
JSON
{
  "hex": "#d42222",
  "rgb": {
    "r": 212,
    "g": 34,
    "b": 34
  },
  "hsl": {
    "h": 0,
    "s": 72.358,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55976,
    "c": 0.21071,
    "h": 27.5
  },
  "luminance": 0.15257
}

Semantic roles & 50–950 ramp

primary
#D42222
secondary
#7DD5D5
accent
#EFEF39
background
#FFF7F5
surface
#FFEDE9
border
#D7C8C5
text
#190905
muted
#867B79

Preview Lab

Preview with #D42222

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D42222 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva