#D031A2#D031A2

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

Color values

HEX#D031A2
RGBrgb(208, 49, 162)
HSLhsl(317, 63%, 50%)
HSVhsv(317, 76%, 82%)
CMYKcmyk(0%, 76.4%, 22.1%, 18.4%)
CIE-LABlab(49.76, 70.21, -24.81)
CIE-LCHlch(49.76, 74.46, 340.53°)
OKLaboklab(59.63% 0.2114 -0.0666)
OKLCHoklch(59.63% 0.222 342.5)
XYZxyz(33.6336, 18.2187, 35.9207)
Luminance0.1822 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D031A2 #31D05F
analogous
#AE31D0 #D031A2 #D03153
triadic
#D031A2 #A2D031 #31A2D0
tetradic
#D031A2 #D0AE31 #31D05F #3153D0
square
#D031A2 #D0AE31 #31D05F #3153D0
split-complementary
#D031A2 #53D031 #31D0AE
monochromatic
#6E1955 #9F247C #D031A2 #DB63B8 #E795CF

Accessibility & contrast

On white

4.52
#D031A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##D031A2#FFFFFF#000000##000000
##D031A21.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4266A5
Deuteranopia (green-blind)
#74809E
Tritanopia (blue-blind)
#DD3266
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #d031a2;
/* rgb */ color: rgb(208, 49, 162);
/* oklch */ color: oklch(59.6% 0.222 342.5);
Tailwind
colors: {
  custom: {
    50: '#e37abd',
    500: '#d031a2',
    950: '#000000',
  },
}
SCSS
$custom: #d031a2;
$custom-light: #e37abd;
$custom-dark: #000000;
JSON
{
  "hex": "#d031a2",
  "rgb": {
    "r": 208,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 317.358,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.59633,
    "c": 0.22163,
    "h": 342.5
  },
  "luminance": 0.18215
}

Semantic roles & 50–950 ramp

primary
#D031A2
secondary
#8BD29F
accent
#E67142
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160A12
muted
#847C81

Preview Lab

Preview with #D031A2

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

Preview Lab → · Contrast checker → · Palette generator →

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