#D170EB#D170EB

#D170EB is a light, vivid purple. Relative luminance 0.311; OKLCH L 70.2% C 0.196 H 318.8°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#D170EB
RGBrgb(209, 112, 235)
HSLhsl(287, 75%, 68%)
HSVhsv(287, 52%, 92%)
CMYKcmyk(11.1%, 52.3%, 0%, 7.8%)
CIE-LABlab(62.63, 56.70, -46.48)
CIE-LCHlch(62.63, 73.32, 320.66°)
OKLaboklab(70.16% 0.1475 -0.1291)
OKLCHoklch(70.16% 0.196 318.8)
XYZxyz(47.0821, 31.1436, 82.1124)
Luminance0.3114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D170EB #8AEB70
analogous
#9370EB #D170EB #EB70C7
triadic
#D170EB #EBD170 #70EBD1
tetradic
#D170EB #EB9370 #8AEB70 #70C7EB
square
#D170EB #EB9370 #8AEB70 #70C7EB
split-complementary
#D170EB #C7EB70 #70EB93
monochromatic
#A11CC5 #C03AE3 #D170EB #E2A6F3 #F4DBFA

Accessibility & contrast

On white

2.91
#D170EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#D170EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D170EB
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D170EB#FFFFFF#000000##000000
##D170EB1.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5891EF
Deuteranopia (green-blind)
#779BE8
Tritanopia (blue-blind)
#D182A3
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #d170eb;
/* rgb */ color: rgb(209, 112, 235);
/* oklch */ color: oklch(70.2% 0.196 318.8);
Tailwind
colors: {
  custom: {
    50: '#e19df2',
    500: '#d170eb',
    950: '#000000',
  },
}
SCSS
$custom: #d170eb;
$custom-light: #e19df2;
$custom-dark: #000000;
JSON
{
  "hex": "#d170eb",
  "rgb": {
    "r": 209,
    "g": 112,
    "b": 235
  },
  "hsl": {
    "h": 287.317,
    "s": 75.46,
    "l": 68.039
  },
  "oklch": {
    "l": 0.70158,
    "c": 0.196,
    "h": 318.8
  },
  "luminance": 0.31142
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D170EB

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

Preview Lab → · Contrast checker → · Palette generator →

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