#D170EF#D170EF

#D170EF is a light, vivid purple. Relative luminance 0.314; OKLCH L 70.4% C 0.200 H 317.7°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#D170EF
RGBrgb(209, 112, 239)
HSLhsl(286, 80%, 69%)
HSVhsv(286, 53%, 94%)
CMYKcmyk(12.6%, 53.1%, 0%, 6.3%)
CIE-LABlab(62.82, 57.49, -48.39)
CIE-LCHlch(62.82, 75.14, 319.91°)
OKLaboklab(70.37% 0.1478 -0.1346)
OKLCHoklch(70.37% 0.2 317.7)
XYZxyz(47.6665, 31.3774, 85.1902)
Luminance0.3138 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D170EF #8EEF70
analogous
#9270EF #D170EF #EF70CE
triadic
#D170EF #EFD170 #70EFD1
tetradic
#D170EF #EF9270 #8EEF70 #70CEEF
square
#D170EF #EF9270 #8EEF70 #70CEEF
split-complementary
#D170EF #CEEF70 #70EF92
monochromatic
#A217CE #BF39E9 #D170EF #E3A7F5 #F4DEFB

Accessibility & contrast

On white

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

On black

7.28
#D170EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D170EF
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D170EF#FFFFFF#000000##000000
##D170EF1.002.897.287.28
#FFFFFF2.891.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5592F3
Deuteranopia (green-blind)
#759BEC
Tritanopia (blue-blind)
#D083A5
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d170ef;
/* rgb */ color: rgb(209, 112, 239);
/* oklch */ color: oklch(70.4% 0.200 317.7);
Tailwind
colors: {
  custom: {
    50: '#e29df5',
    500: '#d170ef',
    950: '#000000',
  },
}
SCSS
$custom: #d170ef;
$custom-light: #e29df5;
$custom-dark: #000000;
JSON
{
  "hex": "#d170ef",
  "rgb": {
    "r": 209,
    "g": 112,
    "b": 239
  },
  "hsl": {
    "h": 285.827,
    "s": 79.874,
    "l": 68.824
  },
  "oklch": {
    "l": 0.70366,
    "c": 0.19996,
    "h": 317.7
  },
  "luminance": 0.31376
}

Semantic roles & 50–950 ramp

primary
#D170EF
secondary
#D3F0CB
accent
#DC093B
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160F17
muted
#847E85

Preview Lab

Preview with #D170EF

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

Preview Lab → · Contrast checker → · Palette generator →

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