#D51F7B#D51F7B

#D51F7B is a mid, highly saturated pink. Relative luminance 0.166; OKLCH L 57.8% C 0.221 H 357.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#D51F7B
RGBrgb(213, 31, 123)
HSLhsl(330, 75%, 48%)
HSVhsv(330, 85%, 84%)
CMYKcmyk(0%, 85.4%, 42.3%, 16.5%)
CIE-LABlab(47.70, 71.47, -4.37)
CIE-LCHlch(47.70, 71.60, 356.50°)
OKLaboklab(57.83% 0.2203 -0.0106)
OKLCHoklch(57.83% 0.221 357.2)
XYZxyz(31.5082, 16.5605, 20.2724)
Luminance0.1656 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D51F7B #1FD579
analogous
#D41FD5 #D51F7B #D51F20
triadic
#D51F7B #7BD51F #1F7BD5
tetradic
#D51F7B #D5D41F #1FD579 #1F20D5
square
#D51F7B #D5D41F #1FD579 #1F20D5
split-complementary
#D51F7B #20D51F #1FD5D4
monochromatic
#6A0F3D #A0175C #D51F7B #E54C99 #ED82B8

Accessibility & contrast

On white

4.87
#D51F7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#D51F7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D51F7B
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D51F7B#FFFFFF#000000##FFFFFF
##D51F7B1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5C7D
Deuteranopia (green-blind)
#7F7D77
Tritanopia (blue-blind)
#E7004C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #d51f7b;
/* rgb */ color: rgb(213, 31, 123);
/* oklch */ color: oklch(57.8% 0.221 357.2);
Tailwind
colors: {
  custom: {
    50: '#e873a1',
    500: '#d51f7b',
    950: '#000000',
  },
}
SCSS
$custom: #d51f7b;
$custom-light: #e873a1;
$custom-dark: #000000;
JSON
{
  "hex": "#d51f7b",
  "rgb": {
    "r": 213,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 329.67,
    "s": 74.59,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57827,
    "c": 0.22055,
    "h": 357.2
  },
  "luminance": 0.16556
}

Semantic roles & 50–950 ramp

primary
#D51F7B
secondary
#7AD5A7
accent
#F19337
background
#FFF7F9
surface
#FEEEF2
border
#D6C9CC
text
#17090E
muted
#857B7E

Preview Lab

Preview with #D51F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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