#D172EB#D172EB

#D172EB is a light, vivid purple. Relative luminance 0.316; OKLCH L 70.4% C 0.193 H 318.7°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#D172EB
RGBrgb(209, 114, 235)
HSLhsl(287, 75%, 68%)
HSVhsv(287, 51%, 92%)
CMYKcmyk(11.1%, 51.5%, 0%, 7.8%)
CIE-LABlab(63.00, 55.71, -45.89)
CIE-LCHlch(63.00, 72.18, 320.52°)
OKLaboklab(70.43% 0.1448 -0.1274)
OKLCHoklch(70.43% 0.193 318.7)
XYZxyz(47.3052, 31.5899, 82.1868)
Luminance0.3159 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172EB #8CEB72
analogous
#9472EB #D172EB #EB72C9
triadic
#D172EB #EBD172 #72EBD1
tetradic
#D172EB #EB9472 #8CEB72 #72C9EB
square
#D172EB #EB9472 #8CEB72 #72C9EB
split-complementary
#D172EB #C9EB72 #72EB94
monochromatic
#A21CC6 #C03CE3 #D172EB #E2A8F3 #F4DDFA

Accessibility & contrast

On white

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

On black

7.32
#D172EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172EB
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172EB#FFFFFF#000000##000000
##D172EB1.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B92EF
Deuteranopia (green-blind)
#799CE8
Tritanopia (blue-blind)
#D184A4
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d172eb;
/* rgb */ color: rgb(209, 114, 235);
/* oklch */ color: oklch(70.4% 0.193 318.7);
Tailwind
colors: {
  custom: {
    50: '#e19ef2',
    500: '#d172eb',
    950: '#000000',
  },
}
SCSS
$custom: #d172eb;
$custom-light: #e19ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#d172eb",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 235
  },
  "hsl": {
    "h": 287.107,
    "s": 75.155,
    "l": 68.431
  },
  "oklch": {
    "l": 0.70433,
    "c": 0.1929,
    "h": 318.7
  },
  "luminance": 0.31588
}

Semantic roles & 50–950 ramp

primary
#D172EB
secondary
#D2EFCA
accent
#D70E39
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D172EB

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

Preview Lab → · Contrast checker → · Palette generator →

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