#D170E7#D170E7

#D170E7 is a light, vivid purple. Relative luminance 0.309; OKLCH L 70.0% C 0.192 H 320.0°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#D170E7
RGBrgb(209, 112, 231)
HSLhsl(289, 71%, 67%)
HSVhsv(289, 52%, 91%)
CMYKcmyk(9.5%, 51.5%, 0%, 9.4%)
CIE-LABlab(62.44, 55.93, -44.56)
CIE-LCHlch(62.44, 71.51, 321.45°)
OKLaboklab(69.95% 0.147 -0.1236)
OKLCHoklch(69.95% 0.192 320)
XYZxyz(46.5107, 30.9150, 79.1030)
Luminance0.3091 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D170E7 #86E770
analogous
#9670E7 #D170E7 #E770C1
triadic
#D170E7 #E7D170 #70E7D1
tetradic
#D170E7 #E79670 #86E770 #70C1E7
square
#D170E7 #E79670 #86E770 #70C1E7
split-complementary
#D170E7 #C1E770 #70E796
monochromatic
#A020BD #C03CDE #D170E7 #E2A4F0 #F3D9F9

Accessibility & contrast

On white

2.92
#D170E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#D170E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D170E7
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D170E7#FFFFFF#000000##000000
##D170E71.002.927.187.18
#FFFFFF2.921.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B90EB
Deuteranopia (green-blind)
#799AE4
Tritanopia (blue-blind)
#D281A1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #d170e7;
/* rgb */ color: rgb(209, 112, 231);
/* oklch */ color: oklch(70.0% 0.192 320.0);
Tailwind
colors: {
  custom: {
    50: '#e19def',
    500: '#d170e7',
    950: '#000000',
  },
}
SCSS
$custom: #d170e7;
$custom-light: #e19def;
$custom-dark: #000000;
JSON
{
  "hex": "#d170e7",
  "rgb": {
    "r": 209,
    "g": 112,
    "b": 231
  },
  "hsl": {
    "h": 288.908,
    "s": 71.257,
    "l": 67.255
  },
  "oklch": {
    "l": 0.69953,
    "c": 0.19206,
    "h": 320
  },
  "luminance": 0.30913
}

Semantic roles & 50–950 ramp

primary
#D170E7
secondary
#CEECC7
accent
#D31236
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E16
muted
#847E84

Preview Lab

Preview with #D170E7

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

Preview Lab → · Contrast checker → · Palette generator →

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