#D4217F#D4217F

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

Color values

HEX#D4217F
RGBrgb(212, 33, 127)
HSLhsl(328, 73%, 48%)
HSVhsv(328, 84%, 83%)
CMYKcmyk(0%, 84.4%, 40.1%, 16.9%)
CIE-LABlab(47.78, 71.21, -6.72)
CIE-LCHlch(47.78, 71.52, 354.61°)
OKLaboklab(57.89% 0.2194 -0.0168)
OKLCHoklch(57.89% 0.22 355.6)
XYZxyz(31.5283, 16.6213, 21.6225)
Luminance0.1662 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4217F #21D476
analogous
#CF21D4 #D4217F #D42125
triadic
#D4217F #7FD421 #217FD4
tetradic
#D4217F #D4CF21 #21D476 #2125D4
square
#D4217F #D4CF21 #21D476 #2125D4
split-complementary
#D4217F #25D421 #21D4CF
monochromatic
#6A1140 #9F195F #D4217F #E44F9D #EC84BA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4217F#FFFFFF#000000##FFFFFF
##D4217F1.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)
#4C5D81
Deuteranopia (green-blind)
#7D7D7B
Tritanopia (blue-blind)
#E6004F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #d4217f;
/* rgb */ color: rgb(212, 33, 127);
/* oklch */ color: oklch(57.9% 0.220 355.6);
Tailwind
colors: {
  custom: {
    50: '#e774a4',
    500: '#d4217f',
    950: '#000000',
  },
}
SCSS
$custom: #d4217f;
$custom-light: #e774a4;
$custom-dark: #000000;
JSON
{
  "hex": "#d4217f",
  "rgb": {
    "r": 212,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 328.492,
    "s": 73.061,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57893,
    "c": 0.22007,
    "h": 355.6
  },
  "luminance": 0.16617
}

Semantic roles & 50–950 ramp

primary
#D4217F
secondary
#7CD5A6
accent
#F08F38
background
#FFF7FA
surface
#FEEEF3
border
#D6C9CD
text
#170A0F
muted
#857C7F

Preview Lab

Preview with #D4217F

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

Preview Lab → · Contrast checker → · Palette generator →

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