#D170E4#D170E4

#D170E4 is a light, vivid purple. Relative luminance 0.307; OKLCH L 69.8% C 0.189 H 320.9°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#D170E4
RGBrgb(209, 112, 228)
HSLhsl(290, 68%, 67%)
HSVhsv(290, 51%, 89%)
CMYKcmyk(8.3%, 50.9%, 0%, 10.6%)
CIE-LABlab(62.29, 55.35, -43.11)
CIE-LCHlch(62.29, 70.16, 322.08°)
OKLaboklab(69.8% 0.1467 -0.1194)
OKLCHoklch(69.8% 0.189 320.9)
XYZxyz(46.0906, 30.7470, 76.8907)
Luminance0.3075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D170E4 #83E470
analogous
#9770E4 #D170E4 #E470BD
triadic
#D170E4 #E4D170 #70E4D1
tetradic
#D170E4 #E49770 #83E470 #70BDE4
square
#D170E4 #E49770 #83E470 #70BDE4
split-complementary
#D170E4 #BDE470 #70E497
monochromatic
#9F23B7 #C03DDA #D170E4 #E2A3EE #F2D7F7

Accessibility & contrast

On white

2.94
#D170E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#D170E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D170E4
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D170E4#FFFFFF#000000##000000
##D170E41.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D90E8
Deuteranopia (green-blind)
#7B9AE1
Tritanopia (blue-blind)
#D380A0
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #d170e4;
/* rgb */ color: rgb(209, 112, 228);
/* oklch */ color: oklch(69.8% 0.189 320.9);
Tailwind
colors: {
  custom: {
    50: '#e19ced',
    500: '#d170e4',
    950: '#000000',
  },
}
SCSS
$custom: #d170e4;
$custom-light: #e19ced;
$custom-dark: #000000;
JSON
{
  "hex": "#d170e4",
  "rgb": {
    "r": 209,
    "g": 112,
    "b": 228
  },
  "hsl": {
    "h": 290.172,
    "s": 68.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.69801,
    "c": 0.18913,
    "h": 320.9
  },
  "luminance": 0.30745
}

Semantic roles & 50–950 ramp

primary
#D170E4
secondary
#CBEBC5
accent
#D01534
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E16
muted
#847E84

Preview Lab

Preview with #D170E4

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

Preview Lab → · Contrast checker → · Palette generator →

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