#D171E8#D171E8

#D171E8 is a light, vivid purple. Relative luminance 0.312; OKLCH L 70.1% C 0.191 H 319.6°. Best body text is #000000 at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#D171E8
RGBrgb(209, 113, 232)
HSLhsl(288, 72%, 68%)
HSVhsv(288, 51%, 91%)
CMYKcmyk(9.9%, 51.3%, 0%, 9%)
CIE-LABlab(62.67, 55.62, -44.75)
CIE-LCHlch(62.67, 71.39, 321.19°)
OKLaboklab(70.14% 0.1458 -0.1241)
OKLCHoklch(70.14% 0.191 319.6)
XYZxyz(46.7633, 31.1936, 79.8860)
Luminance0.3119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171E8 #88E871
analogous
#9571E8 #D171E8 #E871C4
triadic
#D171E8 #E8D171 #71E8D1
tetradic
#D171E8 #E89571 #88E871 #71C4E8
square
#D171E8 #E89571 #88E871 #71C4E8
split-complementary
#D171E8 #C4E871 #71E895
monochromatic
#A11FC0 #C03CDF #D171E8 #E2A6F1 #F3DAF9

Accessibility & contrast

On white

2.90
#D171E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.24
#D171E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171E8
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171E8#FFFFFF#000000##000000
##D171E81.002.907.247.24
#FFFFFF2.901.0021.0021.00
#0000007.2421.001.001.00
##0000007.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B91EC
Deuteranopia (green-blind)
#799BE5
Tritanopia (blue-blind)
#D282A2
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d171e8;
/* rgb */ color: rgb(209, 113, 232);
/* oklch */ color: oklch(70.1% 0.191 319.6);
Tailwind
colors: {
  custom: {
    50: '#e19df0',
    500: '#d171e8',
    950: '#000000',
  },
}
SCSS
$custom: #d171e8;
$custom-light: #e19df0;
$custom-dark: #000000;
JSON
{
  "hex": "#d171e8",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 232
  },
  "hsl": {
    "h": 288.403,
    "s": 72.121,
    "l": 67.647
  },
  "oklch": {
    "l": 0.70142,
    "c": 0.19148,
    "h": 319.6
  },
  "luminance": 0.31192
}

Semantic roles & 50–950 ramp

primary
#D171E8
secondary
#CFEDC8
accent
#D41137
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F16
muted
#847E84

Preview Lab

Preview with #D171E8

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

Preview Lab → · Contrast checker → · Palette generator →

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