#D031A5#D031A5

#D031A5 is a mid, highly saturated pink. Relative luminance 0.183; OKLCH L 59.8% C 0.223 H 341.5°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#D031A5
RGBrgb(208, 49, 165)
HSLhsl(316, 63%, 50%)
HSVhsv(316, 76%, 82%)
CMYKcmyk(0%, 76.4%, 20.7%, 18.4%)
CIE-LABlab(49.89, 70.59, -26.39)
CIE-LCHlch(49.89, 75.36, 339.50°)
OKLaboklab(59.77% 0.2118 -0.071)
OKLCHoklch(59.77% 0.223 341.5)
XYZxyz(33.9034, 18.3266, 37.3419)
Luminance0.1832 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D031A5 #31D05C
analogous
#AB31D0 #D031A5 #D03156
triadic
#D031A5 #A5D031 #31A5D0
tetradic
#D031A5 #D0AB31 #31D05C #3156D0
square
#D031A5 #D0AB31 #31D05C #3156D0
split-complementary
#D031A5 #56D031 #31D0AB
monochromatic
#6E1957 #9F247E #D031A5 #DB63BB #E795D1

Accessibility & contrast

On white

4.50
#D031A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#D031A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D031A5
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D031A5#FFFFFF#000000##000000
##D031A51.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4066A8
Deuteranopia (green-blind)
#7380A1
Tritanopia (blue-blind)
#DD3468
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #d031a5;
/* rgb */ color: rgb(208, 49, 165);
/* oklch */ color: oklch(59.8% 0.223 341.5);
Tailwind
colors: {
  custom: {
    50: '#e37ac0',
    500: '#d031a5',
    950: '#000000',
  },
}
SCSS
$custom: #d031a5;
$custom-light: #e37ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#d031a5",
  "rgb": {
    "r": 208,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 316.226,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.59769,
    "c": 0.22343,
    "h": 341.5
  },
  "luminance": 0.18323
}

Semantic roles & 50–950 ramp

primary
#D031A5
secondary
#8BD29E
accent
#E66E42
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160A12
muted
#847C81

Preview Lab

Preview with #D031A5

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

Preview Lab → · Contrast checker → · Palette generator →

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