#D170E6#D170E6

#D170E6 is a light, vivid purple. Relative luminance 0.309; OKLCH L 69.9% C 0.191 H 320.3°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#D170E6
RGBrgb(209, 112, 230)
HSLhsl(289, 70%, 67%)
HSVhsv(289, 51%, 90%)
CMYKcmyk(9.1%, 51.3%, 0%, 9.8%)
CIE-LABlab(62.39, 55.73, -44.08)
CIE-LCHlch(62.39, 71.06, 321.66°)
OKLaboklab(69.9% 0.1469 -0.1222)
OKLCHoklch(69.9% 0.191 320.3)
XYZxyz(46.3699, 30.8587, 78.3614)
Luminance0.3086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D170E6 #85E670
analogous
#9670E6 #D170E6 #E670C0
triadic
#D170E6 #E6D170 #70E6D1
tetradic
#D170E6 #E69670 #85E670 #70C0E6
square
#D170E6 #E69670 #85E670 #70C0E6
split-complementary
#D170E6 #C0E670 #70E696
monochromatic
#9F21BB #C03CDD #D170E6 #E2A4EF #F3D8F8

Accessibility & contrast

On white

2.93
#D170E6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#D170E6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D170E6
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D170E6#FFFFFF#000000##000000
##D170E61.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B90EA
Deuteranopia (green-blind)
#7A9AE3
Tritanopia (blue-blind)
#D280A1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #d170e6;
/* rgb */ color: rgb(209, 112, 230);
/* oklch */ color: oklch(69.9% 0.191 320.3);
Tailwind
colors: {
  custom: {
    50: '#e19dee',
    500: '#d170e6',
    950: '#000000',
  },
}
SCSS
$custom: #d170e6;
$custom-light: #e19dee;
$custom-dark: #000000;
JSON
{
  "hex": "#d170e6",
  "rgb": {
    "r": 209,
    "g": 112,
    "b": 230
  },
  "hsl": {
    "h": 289.322,
    "s": 70.238,
    "l": 67.059
  },
  "oklch": {
    "l": 0.69902,
    "c": 0.19108,
    "h": 320.3
  },
  "luminance": 0.30857
}

Semantic roles & 50–950 ramp

primary
#D170E6
secondary
#CDECC6
accent
#D21335
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E16
muted
#847E84

Preview Lab

Preview with #D170E6

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

Preview Lab → · Contrast checker → · Palette generator →

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