#D031A7#D031A7

#D031A7 is a mid, highly saturated pink. Relative luminance 0.184; OKLCH L 59.9% C 0.225 H 340.8°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#D031A7
RGBrgb(208, 49, 167)
HSLhsl(315, 63%, 50%)
HSVhsv(315, 76%, 82%)
CMYKcmyk(0%, 76.4%, 19.7%, 18.4%)
CIE-LABlab(49.98, 70.85, -27.44)
CIE-LCHlch(49.98, 75.98, 338.83°)
OKLaboklab(59.86% 0.2121 -0.074)
OKLCHoklch(59.86% 0.225 340.8)
XYZxyz(34.0869, 18.4000, 38.3081)
Luminance0.1840 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D031A7 #31D05A
analogous
#AA31D0 #D031A7 #D03157
triadic
#D031A7 #A7D031 #31A7D0
tetradic
#D031A7 #D0AA31 #31D05A #3157D0
square
#D031A7 #D0AA31 #31D05A #3157D0
split-complementary
#D031A7 #57D031 #31D0AA
monochromatic
#6E1958 #9F2480 #D031A7 #DB63BC #E795D2

Accessibility & contrast

On white

4.49
#D031A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#D031A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D031A7
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D031A7#FFFFFF#000000##000000
##D031A71.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F67AA
Deuteranopia (green-blind)
#7380A3
Tritanopia (blue-blind)
#DD3569
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #d031a7;
/* rgb */ color: rgb(208, 49, 167);
/* oklch */ color: oklch(59.9% 0.225 340.8);
Tailwind
colors: {
  custom: {
    50: '#e37ac1',
    500: '#d031a7',
    950: '#000000',
  },
}
SCSS
$custom: #d031a7;
$custom-light: #e37ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#d031a7",
  "rgb": {
    "r": 208,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 315.472,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.59861,
    "c": 0.22465,
    "h": 340.8
  },
  "luminance": 0.18397
}

Semantic roles & 50–950 ramp

primary
#D031A7
secondary
#8BD29D
accent
#E66C42
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160A12
muted
#847C81

Preview Lab

Preview with #D031A7

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

Preview Lab → · Contrast checker → · Palette generator →

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