#D4257F#D4257F

#D4257F is a mid, highly saturated pink. Relative luminance 0.169; OKLCH L 58.1% C 0.217 H 355.9°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#D4257F
RGBrgb(212, 37, 127)
HSLhsl(329, 70%, 49%)
HSVhsv(329, 83%, 83%)
CMYKcmyk(0%, 82.5%, 40.1%, 16.9%)
CIE-LABlab(48.08, 70.35, -6.27)
CIE-LCHlch(48.08, 70.63, 354.90°)
OKLaboklab(58.11% 0.2167 -0.0156)
OKLCHoklch(58.11% 0.217 355.9)
XYZxyz(31.6461, 16.8567, 21.6618)
Luminance0.1685 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4257F #25D47A
analogous
#D225D4 #D4257F #D42528
triadic
#D4257F #7FD425 #257FD4
tetradic
#D4257F #D4D225 #25D47A #2528D4
square
#D4257F #D4D225 #25D47A #2528D4
split-complementary
#D4257F #28D425 #25D4D2
monochromatic
#6C1341 #A01C60 #D4257F #E1559D #EA89BB

Accessibility & contrast

On white

4.81
#D4257F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#D4257F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D4257F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4257F#FFFFFF#000000##FFFFFF
##D4257F1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5E81
Deuteranopia (green-blind)
#7E7E7B
Tritanopia (blue-blind)
#E50050
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #d4257f;
/* rgb */ color: rgb(212, 37, 127);
/* oklch */ color: oklch(58.1% 0.217 355.9);
Tailwind
colors: {
  custom: {
    50: '#e775a4',
    500: '#d4257f',
    950: '#000000',
  },
}
SCSS
$custom: #d4257f;
$custom-light: #e775a4;
$custom-dark: #000000;
JSON
{
  "hex": "#d4257f",
  "rgb": {
    "r": 212,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 329.143,
    "s": 70.281,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58111,
    "c": 0.21723,
    "h": 355.9
  },
  "luminance": 0.16852
}

Semantic roles & 50–950 ramp

primary
#D4257F
secondary
#81D4A9
accent
#ED913B
background
#FFF7FA
surface
#FEEEF3
border
#D6C9CD
text
#170A0F
muted
#857C7F

Preview Lab

Preview with #D4257F

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

Preview Lab → · Contrast checker → · Palette generator →

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