#D4217E#D4217E

#D4217E is a mid, highly saturated pink. Relative luminance 0.166; OKLCH L 57.9% C 0.220 H 356.0°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#D4217E
RGBrgb(212, 33, 126)
HSLhsl(329, 73%, 48%)
HSVhsv(329, 84%, 83%)
CMYKcmyk(0%, 84.4%, 40.6%, 16.9%)
CIE-LABlab(47.75, 71.11, -6.16)
CIE-LCHlch(47.75, 71.38, 355.05°)
OKLaboklab(57.86% 0.2192 -0.0153)
OKLCHoklch(57.86% 0.22 356)
XYZxyz(31.4635, 16.5953, 21.2810)
Luminance0.1659 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4217E #21D477
analogous
#D021D4 #D4217E #D42124
triadic
#D4217E #7ED421 #217ED4
tetradic
#D4217E #D4D021 #21D477 #2124D4
square
#D4217E #D4D021 #21D477 #2124D4
split-complementary
#D4217E #24D421 #21D4D0
monochromatic
#6A113F #9F195F #D4217E #E44F9C #EC84BA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4217E#FFFFFF#000000##FFFFFF
##D4217E1.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)
#4D5C80
Deuteranopia (green-blind)
#7E7D7A
Tritanopia (blue-blind)
#E6004E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #d4217e;
/* rgb */ color: rgb(212, 33, 126);
/* oklch */ color: oklch(57.9% 0.220 356.0);
Tailwind
colors: {
  custom: {
    50: '#e774a3',
    500: '#d4217e',
    950: '#000000',
  },
}
SCSS
$custom: #d4217e;
$custom-light: #e774a3;
$custom-dark: #000000;
JSON
{
  "hex": "#d4217e",
  "rgb": {
    "r": 212,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 328.827,
    "s": 73.061,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57858,
    "c": 0.21968,
    "h": 356
  },
  "luminance": 0.16591
}

Semantic roles & 50–950 ramp

primary
#D4217E
secondary
#7CD5A7
accent
#F09038
background
#FFF7FA
surface
#FEEEF3
border
#D6C9CD
text
#170A0F
muted
#857C7F

Preview Lab

Preview with #D4217E

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

Preview Lab → · Contrast checker → · Palette generator →

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