#D171EB#D171EB

#D171EB is a light, vivid purple. Relative luminance 0.314; OKLCH L 70.3% C 0.194 H 318.7°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#D171EB
RGBrgb(209, 113, 235)
HSLhsl(287, 75%, 68%)
HSVhsv(287, 52%, 92%)
CMYKcmyk(11.1%, 51.9%, 0%, 7.8%)
CIE-LABlab(62.81, 56.21, -46.18)
CIE-LCHlch(62.81, 72.75, 320.59°)
OKLaboklab(70.3% 0.1461 -0.1283)
OKLCHoklch(70.3% 0.194 318.7)
XYZxyz(47.1930, 31.3655, 82.1494)
Luminance0.3136 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D171EB #8BEB71
analogous
#9471EB #D171EB #EB71C8
triadic
#D171EB #EBD171 #71EBD1
tetradic
#D171EB #EB9471 #8BEB71 #71C8EB
square
#D171EB #EB9471 #8BEB71 #71C8EB
split-complementary
#D171EB #C8EB71 #71EB94
monochromatic
#A21CC6 #C03BE3 #D171EB #E2A7F3 #F4DCFA

Accessibility & contrast

On white

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

On black

7.27
#D171EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D171EB
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D171EB#FFFFFF#000000##000000
##D171EB1.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5991EF
Deuteranopia (green-blind)
#789BE8
Tritanopia (blue-blind)
#D183A4
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d171eb;
/* rgb */ color: rgb(209, 113, 235);
/* oklch */ color: oklch(70.3% 0.194 318.7);
Tailwind
colors: {
  custom: {
    50: '#e19df2',
    500: '#d171eb',
    950: '#000000',
  },
}
SCSS
$custom: #d171eb;
$custom-light: #e19df2;
$custom-dark: #000000;
JSON
{
  "hex": "#d171eb",
  "rgb": {
    "r": 209,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 287.213,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.70295,
    "c": 0.19445,
    "h": 318.7
  },
  "luminance": 0.31364
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D171EB

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

Preview Lab → · Contrast checker → · Palette generator →

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