#D5407F#D5407F

#D5407F is a mid, vivid pink. Relative luminance 0.193; OKLCH L 60.4% C 0.192 H 358.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#D5407F
RGBrgb(213, 64, 127)
HSLhsl(335, 64%, 54%)
HSVhsv(335, 70%, 84%)
CMYKcmyk(0%, 70%, 40.4%, 16.5%)
CIE-LABlab(51.09, 62.61, -1.80)
CIE-LCHlch(51.09, 62.63, 358.35°)
OKLaboklab(60.35% 0.1919 -0.004)
OKLCHoklch(60.35% 0.192 358.8)
XYZxyz(33.1070, 19.3493, 22.0659)
Luminance0.1935 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5407F #40D596
analogous
#D540C9 #D5407F #D54C40
triadic
#D5407F #7FD540 #407FD5
tetradic
#D5407F #C9D540 #40D596 #4C40D5
square
#D5407F #C9D540 #40D596 #4C40D5
split-complementary
#D5407F #40D54C #40C9D5
monochromatic
#7F1C46 #B12761 #D5407F #E072A1 #EBA4C2

Accessibility & contrast

On white

4.31
#D5407F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#D5407F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D5407F
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5407F#FFFFFF#000000##000000
##D5407F1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E6881
Deuteranopia (green-blind)
#86847C
Tritanopia (blue-blind)
#E62E5A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d5407f;
/* rgb */ color: rgb(213, 64, 127);
/* oklch */ color: oklch(60.4% 0.192 358.8);
Tailwind
colors: {
  custom: {
    50: '#e780a4',
    500: '#d5407f',
    950: '#000000',
  },
}
SCSS
$custom: #d5407f;
$custom-light: #e780a4;
$custom-dark: #000000;
JSON
{
  "hex": "#d5407f",
  "rgb": {
    "r": 213,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 334.631,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60353,
    "c": 0.19197,
    "h": 358.8
  },
  "luminance": 0.19345
}

Semantic roles & 50–950 ramp

primary
#D5407F
secondary
#99D8BD
accent
#E7A141
background
#FEF8FA
surface
#FDEFF3
border
#D5CACD
text
#170B0F
muted
#857C7F

Preview Lab

Preview with #D5407F

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

Preview Lab → · Contrast checker → · Palette generator →

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