#D171EF#D171EF

#D171EF is a light, vivid purple. Relative luminance 0.316; OKLCH L 70.5% C 0.198 H 317.6°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#D171EF
RGBrgb(209, 113, 239)
HSLhsl(286, 80%, 69%)
HSVhsv(286, 53%, 94%)
CMYKcmyk(12.6%, 52.7%, 0%, 6.3%)
CIE-LABlab(63.01, 56.99, -48.09)
CIE-LCHlch(63.01, 74.57, 319.84°)
OKLaboklab(70.5% 0.1465 -0.1338)
OKLCHoklch(70.5% 0.198 317.6)
XYZxyz(47.7774, 31.5993, 85.2272)
Luminance0.3160 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171EF #8FEF71
analogous
#9271EF #D171EF #EF71CE
triadic
#D171EF #EFD171 #71EFD1
tetradic
#D171EF #EF9271 #8FEF71 #71CEEF
square
#D171EF #EF9271 #8FEF71 #71CEEF
split-complementary
#D171EF #CEEF71 #71EF92
monochromatic
#A317CE #BF3AE9 #D171EF #E3A8F5 #F5DFFB

Accessibility & contrast

On white

2.87
#D171EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.32
#D171EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171EF
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171EF#FFFFFF#000000##000000
##D171EF1.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5692F3
Deuteranopia (green-blind)
#769CEC
Tritanopia (blue-blind)
#D084A6
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d171ef;
/* rgb */ color: rgb(209, 113, 239);
/* oklch */ color: oklch(70.5% 0.198 317.6);
Tailwind
colors: {
  custom: {
    50: '#e29df5',
    500: '#d171ef',
    950: '#000000',
  },
}
SCSS
$custom: #d171ef;
$custom-light: #e29df5;
$custom-dark: #000000;
JSON
{
  "hex": "#d171ef",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 285.714,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.70502,
    "c": 0.19843,
    "h": 317.6
  },
  "luminance": 0.31598
}

Semantic roles & 50–950 ramp

primary
#D171EF
secondary
#D4F0CB
accent
#DC093C
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160F17
muted
#847E85

Preview Lab

Preview with #D171EF

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

Preview Lab → · Contrast checker → · Palette generator →

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