#D170EE#D170EE

#D170EE is a light, vivid purple. Relative luminance 0.313; OKLCH L 70.3% C 0.199 H 317.9°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#D170EE
RGBrgb(209, 112, 238)
HSLhsl(286, 79%, 69%)
HSVhsv(286, 53%, 93%)
CMYKcmyk(12.2%, 52.9%, 0%, 6.7%)
CIE-LABlab(62.78, 57.29, -47.91)
CIE-LCHlch(62.78, 74.68, 320.09°)
OKLaboklab(70.31% 0.1477 -0.1333)
OKLCHoklch(70.31% 0.199 317.9)
XYZxyz(47.5191, 31.3184, 84.4143)
Luminance0.3132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D170EE #8DEE70
analogous
#9270EE #D170EE #EE70CC
triadic
#D170EE #EED170 #70EED1
tetradic
#D170EE #EE9270 #8DEE70 #70CCEE
square
#D170EE #EE9270 #8DEE70 #70CCEE
split-complementary
#D170EE #CCEE70 #70EE92
monochromatic
#A218CB #BF39E7 #D170EE #E3A7F5 #F4DDFB

Accessibility & contrast

On white

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

On black

7.26
#D170EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D170EE
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D170EE#FFFFFF#000000##000000
##D170EE1.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5691F2
Deuteranopia (green-blind)
#759BEB
Tritanopia (blue-blind)
#D183A5
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d170ee;
/* rgb */ color: rgb(209, 112, 238);
/* oklch */ color: oklch(70.3% 0.199 317.9);
Tailwind
colors: {
  custom: {
    50: '#e29df4',
    500: '#d170ee',
    950: '#000000',
  },
}
SCSS
$custom: #d170ee;
$custom-light: #e29df4;
$custom-dark: #000000;
JSON
{
  "hex": "#d170ee",
  "rgb": {
    "r": 209,
    "g": 112,
    "b": 238
  },
  "hsl": {
    "h": 286.19,
    "s": 78.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.70314,
    "c": 0.19897,
    "h": 317.9
  },
  "luminance": 0.31317
}

Semantic roles & 50–950 ramp

primary
#D170EE
secondary
#D3F0CA
accent
#DB0A3A
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D170EE

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

Preview Lab → · Contrast checker → · Palette generator →

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