#D171CA#D171CA

#D171CA is a light, vivid purple. Relative luminance 0.296; OKLCH L 68.7% C 0.163 H 329.9°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#D171CA
RGBrgb(209, 113, 202)
HSLhsl(304, 51%, 63%)
HSVhsv(304, 46%, 82%)
CMYKcmyk(0%, 45.9%, 3.3%, 18%)
CIE-LABlab(61.34, 50.08, -30.02)
CIE-LCHlch(61.34, 58.38, 329.06°)
OKLaboklab(68.72% 0.1412 -0.0818)
OKLCHoklch(68.72% 0.163 329.9)
XYZxyz(42.8598, 29.6322, 59.3277)
Luminance0.2963 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171CA #71D178
analogous
#A871D1 #D171CA #D1719A
triadic
#D171CA #CAD171 #71CAD1
tetradic
#D171CA #D1A871 #71D178 #719AD1
square
#D171CA #D1A871 #71D178 #719AD1
split-complementary
#D171CA #9AD171 #71D1A8
monochromatic
#97318F #C243B9 #D171CA #E09FDB #EFCDED

Accessibility & contrast

On white

3.03
#D171CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#D171CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D171CA
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171CA#FFFFFF#000000##000000
##D171CA1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8CCD
Deuteranopia (green-blind)
#8799C7
Tritanopia (blue-blind)
#D77994
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #d171ca;
/* rgb */ color: rgb(209, 113, 202);
/* oklch */ color: oklch(68.7% 0.163 329.9);
Tailwind
colors: {
  custom: {
    50: '#e19dda',
    500: '#d171ca',
    950: '#000000',
  },
}
SCSS
$custom: #d171ca;
$custom-light: #e19dda;
$custom-dark: #000000;
JSON
{
  "hex": "#d171ca",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 304.375,
    "s": 51.064,
    "l": 63.137
  },
  "oklch": {
    "l": 0.68715,
    "c": 0.16316,
    "h": 329.9
  },
  "luminance": 0.2963
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D171CA

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

Preview Lab → · Contrast checker → · Palette generator →

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