#D171E4#D171E4

#D171E4 is a light, vivid purple. Relative luminance 0.310; OKLCH L 69.9% C 0.188 H 320.8°. Best body text is #000000 at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#D171E4
RGBrgb(209, 113, 228)
HSLhsl(290, 68%, 67%)
HSVhsv(290, 50%, 89%)
CMYKcmyk(8.3%, 50.4%, 0%, 10.6%)
CIE-LABlab(62.48, 54.85, -42.82)
CIE-LCHlch(62.48, 69.59, 322.03°)
OKLaboklab(69.94% 0.1454 -0.1185)
OKLCHoklch(69.94% 0.188 320.8)
XYZxyz(46.2016, 30.9689, 76.9277)
Luminance0.3097 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171E4 #84E471
analogous
#9871E4 #D171E4 #E471BE
triadic
#D171E4 #E4D171 #71E4D1
tetradic
#D171E4 #E49871 #84E471 #71BEE4
square
#D171E4 #E49871 #84E471 #71BEE4
split-complementary
#D171E4 #BEE471 #71E498
monochromatic
#9F23B8 #C03EDA #D171E4 #E2A4EE #F2D8F8

Accessibility & contrast

On white

2.92
#D171E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.19
#D171E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171E4
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171E4#FFFFFF#000000##000000
##D171E41.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E90E8
Deuteranopia (green-blind)
#7B9BE1
Tritanopia (blue-blind)
#D381A0
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #d171e4;
/* rgb */ color: rgb(209, 113, 228);
/* oklch */ color: oklch(69.9% 0.188 320.8);
Tailwind
colors: {
  custom: {
    50: '#e19ded',
    500: '#d171e4',
    950: '#000000',
  },
}
SCSS
$custom: #d171e4;
$custom-light: #e19ded;
$custom-dark: #000000;
JSON
{
  "hex": "#d171e4",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 228
  },
  "hsl": {
    "h": 290.087,
    "s": 68.047,
    "l": 66.863
  },
  "oklch": {
    "l": 0.6994,
    "c": 0.18755,
    "h": 320.8
  },
  "luminance": 0.30967
}

Semantic roles & 50–950 ramp

primary
#D171E4
secondary
#CCEBC6
accent
#D01634
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F16
muted
#847E84

Preview Lab

Preview with #D171E4

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

Preview Lab → · Contrast checker → · Palette generator →

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