#D171EA#D171EA

#D171EA is a light, vivid purple. Relative luminance 0.313; OKLCH L 70.2% C 0.193 H 319.0°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#D171EA
RGBrgb(209, 113, 234)
HSLhsl(288, 74%, 68%)
HSVhsv(288, 52%, 92%)
CMYKcmyk(10.7%, 51.7%, 0%, 8.2%)
CIE-LABlab(62.77, 56.01, -45.71)
CIE-LCHlch(62.77, 72.29, 320.79°)
OKLaboklab(70.24% 0.146 -0.1269)
OKLCHoklch(70.24% 0.193 319)
XYZxyz(47.0490, 31.3079, 81.3906)
Luminance0.3131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171EA #8AEA71
analogous
#9471EA #D171EA #EA71C7
triadic
#D171EA #EAD171 #71EAD1
tetradic
#D171EA #EA9471 #8AEA71 #71C7EA
square
#D171EA #EA9471 #8AEA71 #71C7EA
split-complementary
#D171EA #C7EA71 #71EA94
monochromatic
#A11DC4 #C03CE2 #D171EA #E2A6F2 #F4DCFA

Accessibility & contrast

On white

2.89
#D171EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#D171EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171EA
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171EA#FFFFFF#000000##000000
##D171EA1.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A91EE
Deuteranopia (green-blind)
#789BE7
Tritanopia (blue-blind)
#D183A3
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d171ea;
/* rgb */ color: rgb(209, 113, 234);
/* oklch */ color: oklch(70.2% 0.193 319.0);
Tailwind
colors: {
  custom: {
    50: '#e19df1',
    500: '#d171ea',
    950: '#000000',
  },
}
SCSS
$custom: #d171ea;
$custom-light: #e19df1;
$custom-dark: #000000;
JSON
{
  "hex": "#d171ea",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 287.603,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.70244,
    "c": 0.19346,
    "h": 319
  },
  "luminance": 0.31306
}

Semantic roles & 50–950 ramp

primary
#D171EA
secondary
#D1EEC9
accent
#D60F38
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D171EA

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

Preview Lab → · Contrast checker → · Palette generator →

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