#D951A2#D951A2

#D951A2 is a light, vivid pink. Relative luminance 0.232; OKLCH L 64.0% C 0.190 H 347.0°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#D951A2
RGBrgb(217, 81, 162)
HSLhsl(324, 64%, 58%)
HSVhsv(324, 63%, 85%)
CMYKcmyk(0%, 62.7%, 25.3%, 14.9%)
CIE-LABlab(55.33, 61.16, -16.15)
CIE-LCHlch(55.33, 63.25, 345.20°)
OKLaboklab(63.98% 0.1848 -0.0426)
OKLCHoklch(63.98% 0.19 347)
XYZxyz(38.0807, 23.2490, 36.6574)
Luminance0.2324 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D951A2 #51D988
analogous
#CC51D9 #D951A2 #D9515E
triadic
#D951A2 #A2D951 #51A2D9
tetradic
#D951A2 #D9CC51 #51D988 #515ED9
square
#D951A2 #D9CC51 #51D988 #515ED9
split-complementary
#D951A2 #5ED951 #51D9CC
monochromatic
#901F63 #C22A85 #D951A2 #E483BD #EFB5D8

Accessibility & contrast

On white

3.72
#D951A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#D951A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D951A2
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D951A2#FFFFFF#000000##000000
##D951A21.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6176A4
Deuteranopia (green-blind)
#878D9F
Tritanopia (blue-blind)
#E74E73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d951a2;
/* rgb */ color: rgb(217, 81, 162);
/* oklch */ color: oklch(64.0% 0.190 347.0);
Tailwind
colors: {
  custom: {
    50: '#e88abd',
    500: '#d951a2',
    950: '#000000',
  },
}
SCSS
$custom: #d951a2;
$custom-light: #e88abd;
$custom-dark: #000000;
JSON
{
  "hex": "#d951a2",
  "rgb": {
    "r": 217,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 324.265,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.63983,
    "c": 0.18966,
    "h": 347
  },
  "luminance": 0.23245
}

Semantic roles & 50–950 ramp

primary
#D951A2
secondary
#A8DEBE
accent
#E78441
background
#FEF8FB
surface
#FDF0F6
border
#D5CBD0
text
#170C12
muted
#857D81

Preview Lab

Preview with #D951A2

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

Preview Lab → · Contrast checker → · Palette generator →

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