#D031A1#D031A1

#D031A1 is a mid, highly saturated pink. Relative luminance 0.182; OKLCH L 59.6% C 0.221 H 342.9°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#D031A1
RGBrgb(208, 49, 161)
HSLhsl(318, 63%, 50%)
HSVhsv(318, 76%, 82%)
CMYKcmyk(0%, 76.4%, 22.6%, 18.4%)
CIE-LABlab(49.72, 70.08, -24.29)
CIE-LCHlch(49.72, 74.17, 340.88°)
OKLaboklab(59.59% 0.2112 -0.0651)
OKLCHoklch(59.59% 0.221 342.9)
XYZxyz(33.5450, 18.1833, 35.4544)
Luminance0.1818 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D031A1 #31D060
analogous
#B031D0 #D031A1 #D03151
triadic
#D031A1 #A1D031 #31A1D0
tetradic
#D031A1 #D0B031 #31D060 #3151D0
square
#D031A1 #D0B031 #31D060 #3151D0
split-complementary
#D031A1 #51D031 #31D0B0
monochromatic
#6E1955 #9F247B #D031A1 #DB63B8 #E795CE

Accessibility & contrast

On white

4.53
#D031A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#D031A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D031A1
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D031A1#FFFFFF#000000##000000
##D031A11.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4366A4
Deuteranopia (green-blind)
#75809D
Tritanopia (blue-blind)
#DD3266
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #d031a1;
/* rgb */ color: rgb(208, 49, 161);
/* oklch */ color: oklch(59.6% 0.221 342.9);
Tailwind
colors: {
  custom: {
    50: '#e37abd',
    500: '#d031a1',
    950: '#000000',
  },
}
SCSS
$custom: #d031a1;
$custom-light: #e37abd;
$custom-dark: #000000;
JSON
{
  "hex": "#d031a1",
  "rgb": {
    "r": 208,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 317.736,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.59588,
    "c": 0.22104,
    "h": 342.9
  },
  "luminance": 0.1818
}

Semantic roles & 50–950 ramp

primary
#D031A1
secondary
#8BD2A0
accent
#E67242
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160A12
muted
#847C81

Preview Lab

Preview with #D031A1

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

Preview Lab → · Contrast checker → · Palette generator →

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