#D331A1#D331A1

#D331A1 is a mid, highly saturated pink. Relative luminance 0.186; OKLCH L 60.1% C 0.223 H 343.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#D331A1
RGBrgb(211, 49, 161)
HSLhsl(319, 65%, 51%)
HSVhsv(319, 77%, 83%)
CMYKcmyk(0%, 76.8%, 23.7%, 17.3%)
CIE-LABlab(50.24, 70.78, -23.43)
CIE-LCHlch(50.24, 74.56, 341.68°)
OKLaboklab(60.07% 0.2139 -0.0627)
OKLCHoklch(60.07% 0.223 343.7)
XYZxyz(34.3967, 18.6224, 35.4944)
Luminance0.1862 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D331A1 #31D363
analogous
#B431D3 #D331A1 #D33150
triadic
#D331A1 #A1D331 #31A1D3
tetradic
#D331A1 #D3B431 #31D363 #3150D3
square
#D331A1 #D3B431 #31D363 #3150D3
split-complementary
#D331A1 #50D331 #31D3B4
monochromatic
#711856 #A4237C #D331A1 #DE63B8 #E996CF

Accessibility & contrast

On white

4.45
#D331A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#D331A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D331A1
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D331A1#FFFFFF#000000##000000
##D331A11.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4466A4
Deuteranopia (green-blind)
#77819D
Tritanopia (blue-blind)
#E13066
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #d331a1;
/* rgb */ color: rgb(211, 49, 161);
/* oklch */ color: oklch(60.1% 0.223 343.7);
Tailwind
colors: {
  custom: {
    50: '#e57abd',
    500: '#d331a1',
    950: '#000000',
  },
}
SCSS
$custom: #d331a1;
$custom-light: #e57abd;
$custom-dark: #000000;
JSON
{
  "hex": "#d331a1",
  "rgb": {
    "r": 211,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 318.519,
    "s": 64.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.60066,
    "c": 0.22287,
    "h": 343.7
  },
  "luminance": 0.18619
}

Semantic roles & 50–950 ramp

primary
#D331A1
secondary
#8CD4A2
accent
#E87440
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160A12
muted
#847C81

Preview Lab

Preview with #D331A1

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

Preview Lab → · Contrast checker → · Palette generator →

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