#D42771#D42771

#D42771 is a mid, highly saturated pink. Relative luminance 0.166; OKLCH L 57.8% C 0.211 H 1.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#D42771
RGBrgb(212, 39, 113)
HSLhsl(334, 69%, 49%)
HSVhsv(334, 82%, 83%)
CMYKcmyk(0%, 81.6%, 46.7%, 16.9%)
CIE-LABlab(47.81, 68.62, 1.89)
CIE-LCHlch(47.81, 68.64, 1.57°)
OKLaboklab(57.77% 0.2109 0.0056)
OKLCHoklch(57.77% 0.211 1.5)
XYZxyz(30.8602, 16.6446, 17.2073)
Luminance0.1664 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42771 #27D48A
analogous
#D427C8 #D42771 #D43327
triadic
#D42771 #71D427 #2771D4
tetradic
#D42771 #C8D427 #27D48A #3327D4
square
#D42771 #C8D427 #27D48A #3327D4
split-complementary
#D42771 #27D433 #27C8D4
monochromatic
#6D143A #A01D55 #D42771 #E05892 #EA8CB4

Accessibility & contrast

On white

4.85
#D42771 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#D42771 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D42771
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42771#FFFFFF#000000##FFFFFF
##D427711.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#545C73
Deuteranopia (green-blind)
#827D6D
Tritanopia (blue-blind)
#E70049
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #d42771;
/* rgb */ color: rgb(212, 39, 113);
/* oklch */ color: oklch(57.8% 0.211 1.5);
Tailwind
colors: {
  custom: {
    50: '#e87599',
    500: '#d42771',
    950: '#000000',
  },
}
SCSS
$custom: #d42771;
$custom-light: #e87599;
$custom-dark: #000000;
JSON
{
  "hex": "#d42771",
  "rgb": {
    "r": 212,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 334.335,
    "s": 68.924,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57773,
    "c": 0.21092,
    "h": 1.5
  },
  "luminance": 0.1664
}

Semantic roles & 50–950 ramp

primary
#D42771
secondary
#83D4B1
accent
#ECA13C
background
#FFF7F9
surface
#FEEEF2
border
#D6C9CC
text
#170A0D
muted
#857C7E

Preview Lab

Preview with #D42771

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

Preview Lab → · Contrast checker → · Palette generator →

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