#D5407C#D5407C

#D5407C is a mid, vivid pink. Relative luminance 0.193; OKLCH L 60.3% C 0.191 H 0.1°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#D5407C
RGBrgb(213, 64, 124)
HSLhsl(336, 64%, 54%)
HSVhsv(336, 70%, 84%)
CMYKcmyk(0%, 70%, 41.8%, 16.5%)
CIE-LABlab(51.00, 62.31, -0.12)
CIE-LCHlch(51.00, 62.31, 359.89°)
OKLaboklab(60.26% 0.191 0.0004)
OKLCHoklch(60.26% 0.191 0.1)
XYZxyz(32.9144, 19.2723, 21.0515)
Luminance0.1927 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5407C #40D599
analogous
#D540C6 #D5407C #D54F40
triadic
#D5407C #7CD540 #407CD5
tetradic
#D5407C #C6D540 #40D599 #4F40D5
square
#D5407C #C6D540 #40D599 #4F40D5
split-complementary
#D5407C #40D54F #40C6D5
monochromatic
#7F1C44 #B1275E #D5407C #E0729E #EBA4C1

Accessibility & contrast

On white

4.33
#D5407C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#D5407C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D5407C
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5407C#FFFFFF#000000##000000
##D5407C1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F677E
Deuteranopia (green-blind)
#878479
Tritanopia (blue-blind)
#E72C59
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d5407c;
/* rgb */ color: rgb(213, 64, 124);
/* oklch */ color: oklch(60.3% 0.191 0.1);
Tailwind
colors: {
  custom: {
    50: '#e780a1',
    500: '#d5407c',
    950: '#000000',
  },
}
SCSS
$custom: #d5407c;
$custom-light: #e780a1;
$custom-dark: #000000;
JSON
{
  "hex": "#d5407c",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 335.839,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60258,
    "c": 0.19096,
    "h": 0.1
  },
  "luminance": 0.19268
}

Semantic roles & 50–950 ramp

primary
#D5407C
secondary
#99D8BF
accent
#E7A441
background
#FEF8F9
surface
#FDEFF2
border
#D5CACC
text
#170B0F
muted
#857C7E

Preview Lab

Preview with #D5407C

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

Preview Lab → · Contrast checker → · Palette generator →

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