#D172EA#D172EA

#D172EA is a light, vivid purple. Relative luminance 0.315; OKLCH L 70.4% C 0.192 H 318.9°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#D172EA
RGBrgb(209, 114, 234)
HSLhsl(288, 74%, 68%)
HSVhsv(288, 51%, 92%)
CMYKcmyk(10.7%, 51.3%, 0%, 8.2%)
CIE-LABlab(62.95, 55.52, -45.41)
CIE-LCHlch(62.95, 71.72, 320.72°)
OKLaboklab(70.38% 0.1447 -0.126)
OKLCHoklch(70.38% 0.192 318.9)
XYZxyz(47.1611, 31.5322, 81.4280)
Luminance0.3153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172EA #8BEA72
analogous
#9572EA #D172EA #EA72C7
triadic
#D172EA #EAD172 #72EAD1
tetradic
#D172EA #EA9572 #8BEA72 #72C7EA
square
#D172EA #EA9572 #8BEA72 #72C7EA
split-complementary
#D172EA #C7EA72 #72EA95
monochromatic
#A21DC4 #C03DE2 #D172EA #E2A7F2 #F4DDFA

Accessibility & contrast

On white

2.87
#D172EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#D172EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172EA
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172EA#FFFFFF#000000##000000
##D172EA1.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B92EE
Deuteranopia (green-blind)
#799CE7
Tritanopia (blue-blind)
#D183A4
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d172ea;
/* rgb */ color: rgb(209, 114, 234);
/* oklch */ color: oklch(70.4% 0.192 318.9);
Tailwind
colors: {
  custom: {
    50: '#e19ef1',
    500: '#d172ea',
    950: '#000000',
  },
}
SCSS
$custom: #d172ea;
$custom-light: #e19ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#d172ea",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 287.5,
    "s": 74.074,
    "l": 68.235
  },
  "oklch": {
    "l": 0.70382,
    "c": 0.1919,
    "h": 318.9
  },
  "luminance": 0.3153
}

Semantic roles & 50–950 ramp

primary
#D172EA
secondary
#D1EECA
accent
#D60F39
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D172EA

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

Preview Lab → · Contrast checker → · Palette generator →

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