#D42F4F#D42F4F

#D42F4F is a mid, vivid red. Relative luminance 0.166; OKLCH L 57.5% C 0.199 H 15.9°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#D42F4F
RGBrgb(212, 47, 79)
HSLhsl(348, 66%, 51%)
HSVhsv(348, 78%, 83%)
CMYKcmyk(0%, 77.8%, 62.7%, 16.9%)
CIE-LABlab(47.75, 64.06, 22.66)
CIE-LCHlch(47.75, 67.95, 19.48°)
OKLaboklab(57.47% 0.1916 0.0547)
OKLCHoklch(57.47% 0.199 15.9)
XYZxyz(29.5823, 16.5991, 9.0419)
Luminance0.1659 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42F4F #2FD4B4
analogous
#D42FA1 #D42F4F #D4622F
triadic
#D42F4F #4FD42F #2F4FD4
tetradic
#D42F4F #A1D42F #2FD4B4 #622FD4
square
#D42F4F #A1D42F #2FD4B4 #622FD4
split-complementary
#D42F4F #2FD462 #2FA1D4
monochromatic
#711729 #A4223B #D42F4F #DE627A #E994A5

Accessibility & contrast

On white

4.86
#D42F4F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#D42F4F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D42F4F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42F4F#FFFFFF#000000##FFFFFF
##D42F4F1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5B4F
Deuteranopia (green-blind)
#897E4A
Tritanopia (blue-blind)
#E8003D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #d42f4f;
/* rgb */ color: rgb(212, 47, 79);
/* oklch */ color: oklch(57.5% 0.199 15.9);
Tailwind
colors: {
  custom: {
    50: '#e97780',
    500: '#d42f4f',
    950: '#000000',
  },
}
SCSS
$custom: #d42f4f;
$custom-light: #e97780;
$custom-dark: #000000;
JSON
{
  "hex": "#d42f4f",
  "rgb": {
    "r": 212,
    "g": 47,
    "b": 79
  },
  "hsl": {
    "h": 348.364,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57469,
    "c": 0.19922,
    "h": 15.9
  },
  "luminance": 0.16595
}

Semantic roles & 50–950 ramp

primary
#D42F4F
secondary
#8BD4C6
accent
#E9C83F
background
#FFF7F7
surface
#FFEEEE
border
#D7C9C9
text
#180A0A
muted
#867C7C

Preview Lab

Preview with #D42F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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