#D51F78#D51F78

#D51F78 is a mid, highly saturated pink. Relative luminance 0.165; OKLCH L 57.7% C 0.219 H 358.4°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#D51F78
RGBrgb(213, 31, 120)
HSLhsl(331, 75%, 48%)
HSVhsv(331, 85%, 84%)
CMYKcmyk(0%, 85.4%, 43.7%, 16.5%)
CIE-LABlab(47.61, 71.20, -2.68)
CIE-LCHlch(47.61, 71.25, 357.85°)
OKLaboklab(57.73% 0.2194 -0.0062)
OKLCHoklch(57.73% 0.219 358.4)
XYZxyz(31.3233, 16.4865, 19.2985)
Luminance0.1648 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D51F78 #1FD57C
analogous
#D51FD3 #D51F78 #D5211F
triadic
#D51F78 #78D51F #1F78D5
tetradic
#D51F78 #D3D51F #1FD57C #211FD5
square
#D51F78 #D3D51F #1FD57C #211FD5
split-complementary
#D51F78 #1FD521 #1FD3D5
monochromatic
#6A0F3C #A0175A #D51F78 #E54C97 #ED82B6

Accessibility & contrast

On white

4.89
#D51F78 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#D51F78 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D51F78
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D51F78#FFFFFF#000000##FFFFFF
##D51F781.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5B7A
Deuteranopia (green-blind)
#7F7D74
Tritanopia (blue-blind)
#E7004B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #d51f78;
/* rgb */ color: rgb(213, 31, 120);
/* oklch */ color: oklch(57.7% 0.219 358.4);
Tailwind
colors: {
  custom: {
    50: '#e8739e',
    500: '#d51f78',
    950: '#000000',
  },
}
SCSS
$custom: #d51f78;
$custom-light: #e8739e;
$custom-dark: #000000;
JSON
{
  "hex": "#d51f78",
  "rgb": {
    "r": 213,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 330.659,
    "s": 74.59,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57727,
    "c": 0.21949,
    "h": 358.4
  },
  "luminance": 0.16482
}

Semantic roles & 50–950 ramp

primary
#D51F78
secondary
#7AD5A9
accent
#F19637
background
#FFF7F9
surface
#FEEEF2
border
#D6C9CC
text
#17090E
muted
#857B7E

Preview Lab

Preview with #D51F78

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

Preview Lab → · Contrast checker → · Palette generator →

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