#D42F71#D42F71

#D42F71 is a mid, highly saturated pink. Relative luminance 0.172; OKLCH L 58.3% C 0.204 H 2.3°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#D42F71
RGBrgb(212, 47, 113)
HSLhsl(336, 66%, 51%)
HSVhsv(336, 78%, 83%)
CMYKcmyk(0%, 77.8%, 46.7%, 16.9%)
CIE-LABlab(48.54, 66.52, 2.95)
CIE-LCHlch(48.54, 66.59, 2.54°)
OKLaboklab(58.31% 0.2041 0.0083)
OKLCHoklch(58.31% 0.204 2.3)
XYZxyz(31.1511, 17.2266, 17.3043)
Luminance0.1722 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42F71 #2FD492
analogous
#D42FC3 #D42F71 #D43F2F
triadic
#D42F71 #71D42F #2F71D4
tetradic
#D42F71 #C3D42F #2FD492 #3F2FD4
square
#D42F71 #C3D42F #2FD492 #3F2FD4
split-complementary
#D42F71 #2FD43F #2FC3D4
monochromatic
#71173B #A42256 #D42F71 #DE6294 #E994B6

Accessibility & contrast

On white

4.73
#D42F71 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#D42F71 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D42F71
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42F71#FFFFFF#000000##FFFFFF
##D42F711.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#575F72
Deuteranopia (green-blind)
#837F6D
Tritanopia (blue-blind)
#E6004C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #d42f71;
/* rgb */ color: rgb(212, 47, 113);
/* oklch */ color: oklch(58.3% 0.204 2.3);
Tailwind
colors: {
  custom: {
    50: '#e77899',
    500: '#d42f71',
    950: '#000000',
  },
}
SCSS
$custom: #d42f71;
$custom-light: #e77899;
$custom-dark: #000000;
JSON
{
  "hex": "#d42f71",
  "rgb": {
    "r": 212,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 336,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58311,
    "c": 0.20428,
    "h": 2.3
  },
  "luminance": 0.17222
}

Semantic roles & 50–950 ramp

primary
#D42F71
secondary
#8BD4B7
accent
#E9A53F
background
#FFF7F9
surface
#FEEEF2
border
#D6C9CC
text
#170A0D
muted
#857C7E

Preview Lab

Preview with #D42F71

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

Preview Lab → · Contrast checker → · Palette generator →

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