#D031B2#D031B2

#D031B2 is a mid, highly saturated pink. Relative luminance 0.188; OKLCH L 60.4% C 0.232 H 337.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#D031B2
RGBrgb(208, 49, 178)
HSLhsl(311, 63%, 50%)
HSVhsv(311, 76%, 82%)
CMYKcmyk(0%, 76.4%, 14.4%, 18.4%)
CIE-LABlab(50.48, 72.33, -33.12)
CIE-LCHlch(50.48, 79.55, 335.40°)
OKLaboklab(60.39% 0.2134 -0.0902)
OKLCHoklch(60.39% 0.232 337.1)
XYZxyz(35.1473, 18.8242, 43.8932)
Luminance0.1882 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D031B2 #31D04F
analogous
#9F31D0 #D031B2 #D03162
triadic
#D031B2 #B2D031 #31B2D0
tetradic
#D031B2 #D09F31 #31D04F #3162D0
square
#D031B2 #D09F31 #31D04F #3162D0
split-complementary
#D031B2 #62D031 #31D09F
monochromatic
#6E195E #9F2488 #D031B2 #DB63C5 #E795D7

Accessibility & contrast

On white

4.41
#D031B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#D031B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D031B2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D031B2#FFFFFF#000000##000000
##D031B21.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3669B5
Deuteranopia (green-blind)
#6E81AE
Tritanopia (blue-blind)
#DB3C6F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #d031b2;
/* rgb */ color: rgb(208, 49, 178);
/* oklch */ color: oklch(60.4% 0.232 337.1);
Tailwind
colors: {
  custom: {
    50: '#e37ac9',
    500: '#d031b2',
    950: '#000000',
  },
}
SCSS
$custom: #d031b2;
$custom-light: #e37ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#d031b2",
  "rgb": {
    "r": 208,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 311.321,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.60388,
    "c": 0.23162,
    "h": 337.1
  },
  "luminance": 0.18821
}

Semantic roles & 50–950 ramp

primary
#D031B2
secondary
#8BD298
accent
#E66142
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160A13
muted
#847C82

Preview Lab

Preview with #D031B2

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

Preview Lab → · Contrast checker → · Palette generator →

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