#D172EE#D172EE

#D172EE is a light, vivid purple. Relative luminance 0.318; OKLCH L 70.6% C 0.196 H 317.8°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#D172EE
RGBrgb(209, 114, 238)
HSLhsl(286, 78%, 69%)
HSVhsv(286, 52%, 93%)
CMYKcmyk(12.2%, 52.1%, 0%, 6.7%)
CIE-LABlab(63.15, 56.30, -47.32)
CIE-LCHlch(63.15, 73.55, 319.95°)
OKLaboklab(70.59% 0.1451 -0.1316)
OKLCHoklch(70.59% 0.196 317.8)
XYZxyz(47.7423, 31.7647, 84.4887)
Luminance0.3176 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172EE #8FEE72
analogous
#9372EE #D172EE #EE72CD
triadic
#D172EE #EED172 #72EED1
tetradic
#D172EE #EE9372 #8FEE72 #72CDEE
square
#D172EE #EE9372 #8FEE72 #72CDEE
split-complementary
#D172EE #CDEE72 #72EE93
monochromatic
#A319CD #BF3BE7 #D172EE #E3A9F5 #F5DFFB

Accessibility & contrast

On white

2.86
#D172EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.35
#D172EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172EE
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172EE#FFFFFF#000000##000000
##D172EE1.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5993F2
Deuteranopia (green-blind)
#779CEB
Tritanopia (blue-blind)
#D185A6
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d172ee;
/* rgb */ color: rgb(209, 114, 238);
/* oklch */ color: oklch(70.6% 0.196 317.8);
Tailwind
colors: {
  custom: {
    50: '#e19ef4',
    500: '#d172ee',
    950: '#000000',
  },
}
SCSS
$custom: #d172ee;
$custom-light: #e19ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#d172ee",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 238
  },
  "hsl": {
    "h": 285.968,
    "s": 78.481,
    "l": 69.02
  },
  "oklch": {
    "l": 0.70588,
    "c": 0.19589,
    "h": 317.8
  },
  "luminance": 0.31763
}

Semantic roles & 50–950 ramp

primary
#D172EE
secondary
#D4F0CC
accent
#DB0B3B
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D172EE

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

Preview Lab → · Contrast checker → · Palette generator →

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