#D172CA#D172CA

#D172CA is a light, vivid purple. Relative luminance 0.299; OKLCH L 68.9% C 0.161 H 329.9°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#D172CA
RGBrgb(209, 114, 202)
HSLhsl(304, 51%, 63%)
HSVhsv(304, 45%, 82%)
CMYKcmyk(0%, 45.5%, 3.3%, 18%)
CIE-LABlab(61.53, 49.57, -29.72)
CIE-LCHlch(61.53, 57.80, 329.06°)
OKLaboklab(68.86% 0.1397 -0.081)
OKLCHoklch(68.86% 0.161 329.9)
XYZxyz(42.9720, 29.8566, 59.3651)
Luminance0.2985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172CA #72D179
analogous
#A872D1 #D172CA #D1729A
triadic
#D172CA #CAD172 #72CAD1
tetradic
#D172CA #D1A872 #72D179 #729AD1
square
#D172CA #D1A872 #72D179 #729AD1
split-complementary
#D172CA #9AD172 #72D1A8
monochromatic
#973190 #C244B9 #D172CA #E0A0DB #EFCEED

Accessibility & contrast

On white

3.01
#D172CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#D172CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D172CA
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172CA#FFFFFF#000000##000000
##D172CA1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D8CCD
Deuteranopia (green-blind)
#8899C7
Tritanopia (blue-blind)
#D77A95
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #d172ca;
/* rgb */ color: rgb(209, 114, 202);
/* oklch */ color: oklch(68.9% 0.161 329.9);
Tailwind
colors: {
  custom: {
    50: '#e19dda',
    500: '#d172ca',
    950: '#000000',
  },
}
SCSS
$custom: #d172ca;
$custom-light: #e19dda;
$custom-dark: #000000;
JSON
{
  "hex": "#d172ca",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 202
  },
  "hsl": {
    "h": 304.421,
    "s": 50.802,
    "l": 63.333
  },
  "oklch": {
    "l": 0.6886,
    "c": 0.16149,
    "h": 329.9
  },
  "luminance": 0.29854
}

Semantic roles & 50–950 ramp

primary
#D172CA
secondary
#BEE0C1
accent
#BE3227
background
#FEF9FD
surface
#FCF2FA
border
#D5CCD3
text
#160E15
muted
#847E83

Preview Lab

Preview with #D172CA

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

Preview Lab → · Contrast checker → · Palette generator →

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