#D031B1#D031B1

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

Color values

HEX#D031B1
RGBrgb(208, 49, 177)
HSLhsl(312, 63%, 50%)
HSVhsv(312, 76%, 82%)
CMYKcmyk(0%, 76.4%, 14.9%, 18.4%)
CIE-LABlab(50.43, 72.19, -32.61)
CIE-LCHlch(50.43, 79.21, 335.69°)
OKLaboklab(60.34% 0.2133 -0.0887)
OKLCHoklch(60.34% 0.231 337.4)
XYZxyz(35.0473, 18.7842, 43.3664)
Luminance0.1878 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D031B1 #31D050
analogous
#9F31D0 #D031B1 #D03161
triadic
#D031B1 #B1D031 #31B1D0
tetradic
#D031B1 #D09F31 #31D050 #3161D0
square
#D031B1 #D09F31 #31D050 #3161D0
split-complementary
#D031B1 #61D031 #31D09F
monochromatic
#6E195D #9F2487 #D031B1 #DB63C4 #E795D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D031B1#FFFFFF#000000##000000
##D031B11.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3769B4
Deuteranopia (green-blind)
#6F81AD
Tritanopia (blue-blind)
#DB3B6F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #d031b1;
/* rgb */ color: rgb(208, 49, 177);
/* oklch */ color: oklch(60.3% 0.231 337.4);
Tailwind
colors: {
  custom: {
    50: '#e37ac8',
    500: '#d031b1',
    950: '#000000',
  },
}
SCSS
$custom: #d031b1;
$custom-light: #e37ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#d031b1",
  "rgb": {
    "r": 208,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 311.698,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.60339,
    "c": 0.23097,
    "h": 337.4
  },
  "luminance": 0.18781
}

Semantic roles & 50–950 ramp

primary
#D031B1
secondary
#8BD299
accent
#E66242
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160A13
muted
#847C82

Preview Lab

Preview with #D031B1

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

Preview Lab → · Contrast checker → · Palette generator →

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