#D170EA#D170EA

#D170EA is a light, vivid purple. Relative luminance 0.311; OKLCH L 70.1% C 0.195 H 319.1°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#D170EA
RGBrgb(209, 112, 234)
HSLhsl(288, 74%, 68%)
HSVhsv(288, 52%, 92%)
CMYKcmyk(10.7%, 52.1%, 0%, 8.2%)
CIE-LABlab(62.58, 56.51, -46.00)
CIE-LCHlch(62.58, 72.86, 320.85°)
OKLaboklab(70.11% 0.1474 -0.1277)
OKLCHoklch(70.11% 0.195 319.1)
XYZxyz(46.9380, 31.0860, 81.3537)
Luminance0.3108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D170EA #89EA70
analogous
#9470EA #D170EA #EA70C6
triadic
#D170EA #EAD170 #70EAD1
tetradic
#D170EA #EA9470 #89EA70 #70C6EA
square
#D170EA #EA9470 #89EA70 #70C6EA
split-complementary
#D170EA #C6EA70 #70EA94
monochromatic
#A11DC3 #C03BE2 #D170EA #E2A5F2 #F3DBFA

Accessibility & contrast

On white

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

On black

7.22
#D170EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D170EA
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D170EA#FFFFFF#000000##000000
##D170EA1.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5991EE
Deuteranopia (green-blind)
#779BE7
Tritanopia (blue-blind)
#D182A3
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #d170ea;
/* rgb */ color: rgb(209, 112, 234);
/* oklch */ color: oklch(70.1% 0.195 319.1);
Tailwind
colors: {
  custom: {
    50: '#e19df1',
    500: '#d170ea',
    950: '#000000',
  },
}
SCSS
$custom: #d170ea;
$custom-light: #e19df1;
$custom-dark: #000000;
JSON
{
  "hex": "#d170ea",
  "rgb": {
    "r": 209,
    "g": 112,
    "b": 234
  },
  "hsl": {
    "h": 287.705,
    "s": 74.39,
    "l": 67.843
  },
  "oklch": {
    "l": 0.70106,
    "c": 0.19501,
    "h": 319.1
  },
  "luminance": 0.31084
}

Semantic roles & 50–950 ramp

primary
#D170EA
secondary
#D0EEC8
accent
#D70F38
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E17
muted
#847E85

Preview Lab

Preview with #D170EA

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

Preview Lab → · Contrast checker → · Palette generator →

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