#D331A5#D331A5

#D331A5 is a mid, highly saturated pink. Relative luminance 0.188; OKLCH L 60.2% C 0.225 H 342.3°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#D331A5
RGBrgb(211, 49, 165)
HSLhsl(317, 65%, 51%)
HSVhsv(317, 77%, 83%)
CMYKcmyk(0%, 76.8%, 21.8%, 17.3%)
CIE-LABlab(50.41, 71.29, -25.54)
CIE-LCHlch(50.41, 75.72, 340.29°)
OKLaboklab(60.24% 0.2145 -0.0686)
OKLCHoklch(60.24% 0.225 342.3)
XYZxyz(34.7551, 18.7658, 37.3818)
Luminance0.1876 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D331A5 #31D35F
analogous
#B031D3 #D331A5 #D33154
triadic
#D331A5 #A5D331 #31A5D3
tetradic
#D331A5 #D3B031 #31D35F #3154D3
square
#D331A5 #D3B031 #31D35F #3154D3
split-complementary
#D331A5 #54D331 #31D3B0
monochromatic
#711858 #A4237F #D331A5 #DE63BB #E996D1

Accessibility & contrast

On white

4.42
#D331A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#D331A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D331A5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D331A5#FFFFFF#000000##000000
##D331A51.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4267A8
Deuteranopia (green-blind)
#7681A1
Tritanopia (blue-blind)
#E03368
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #d331a5;
/* rgb */ color: rgb(211, 49, 165);
/* oklch */ color: oklch(60.2% 0.225 342.3);
Tailwind
colors: {
  custom: {
    50: '#e57ac0',
    500: '#d331a5',
    950: '#000000',
  },
}
SCSS
$custom: #d331a5;
$custom-light: #e57ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#d331a5",
  "rgb": {
    "r": 211,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 317.037,
    "s": 64.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.60244,
    "c": 0.22521,
    "h": 342.3
  },
  "luminance": 0.18762
}

Semantic roles & 50–950 ramp

primary
#D331A5
secondary
#8CD4A0
accent
#E87040
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160A12
muted
#847C81

Preview Lab

Preview with #D331A5

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

Preview Lab → · Contrast checker → · Palette generator →

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