#D4217D#D4217D

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

Color values

HEX#D4217D
RGBrgb(212, 33, 125)
HSLhsl(329, 73%, 48%)
HSVhsv(329, 84%, 83%)
CMYKcmyk(0%, 84.4%, 41%, 16.9%)
CIE-LABlab(47.71, 71.02, -5.60)
CIE-LCHlch(47.71, 71.24, 355.49°)
OKLaboklab(57.82% 0.2189 -0.0138)
OKLCHoklch(57.82% 0.219 356.4)
XYZxyz(31.3993, 16.5696, 20.9429)
Luminance0.1656 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4217D #21D478
analogous
#D121D4 #D4217D #D42124
triadic
#D4217D #7DD421 #217DD4
tetradic
#D4217D #D4D121 #21D478 #2124D4
square
#D4217D #D4D121 #21D478 #2124D4
split-complementary
#D4217D #24D421 #21D4D1
monochromatic
#6A113F #9F195E #D4217D #E44F9B #EC84B9

Accessibility & contrast

On white

4.87
#D4217D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#D4217D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D4217D
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4217D#FFFFFF#000000##FFFFFF
##D4217D1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5C7F
Deuteranopia (green-blind)
#7E7D79
Tritanopia (blue-blind)
#E6004E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #d4217d;
/* rgb */ color: rgb(212, 33, 125);
/* oklch */ color: oklch(57.8% 0.219 356.4);
Tailwind
colors: {
  custom: {
    50: '#e774a2',
    500: '#d4217d',
    950: '#000000',
  },
}
SCSS
$custom: #d4217d;
$custom-light: #e774a2;
$custom-dark: #000000;
JSON
{
  "hex": "#d4217d",
  "rgb": {
    "r": 212,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 329.162,
    "s": 73.061,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57823,
    "c": 0.21931,
    "h": 356.4
  },
  "luminance": 0.16565
}

Semantic roles & 50–950 ramp

primary
#D4217D
secondary
#7CD5A7
accent
#F09138
background
#FFF7F9
surface
#FEEEF2
border
#D6C9CC
text
#170A0F
muted
#857C7E

Preview Lab

Preview with #D4217D

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

Preview Lab → · Contrast checker → · Palette generator →

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