#D172EF#D172EF

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

Color values

HEX#D172EF
RGBrgb(209, 114, 239)
HSLhsl(286, 80%, 69%)
HSVhsv(286, 52%, 94%)
CMYKcmyk(12.6%, 52.3%, 0%, 6.3%)
CIE-LABlab(63.20, 56.50, -47.80)
CIE-LCHlch(63.20, 74.01, 319.77°)
OKLaboklab(70.64% 0.1452 -0.133)
OKLCHoklch(70.64% 0.197 317.5)
XYZxyz(47.8896, 31.8236, 85.2645)
Luminance0.3182 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D172EF #90EF72
analogous
#9372EF #D172EF #EF72CF
triadic
#D172EF #EFD172 #72EFD1
tetradic
#D172EF #EF9372 #90EF72 #72CFEF
square
#D172EF #EF9372 #90EF72 #72CFEF
split-complementary
#D172EF #CFEF72 #72EF93
monochromatic
#A318CF #BF3BE9 #D172EF #E3A9F5 #F5E0FB

Accessibility & contrast

On white

2.85
#D172EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#D172EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D172EF
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D172EF#FFFFFF#000000##000000
##D172EF1.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5893F3
Deuteranopia (green-blind)
#769CEC
Tritanopia (blue-blind)
#D085A6
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d172ef;
/* rgb */ color: rgb(209, 114, 239);
/* oklch */ color: oklch(70.6% 0.197 317.5);
Tailwind
colors: {
  custom: {
    50: '#e19ef5',
    500: '#d172ef',
    950: '#000000',
  },
}
SCSS
$custom: #d172ef;
$custom-light: #e19ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#d172ef",
  "rgb": {
    "r": 209,
    "g": 114,
    "b": 239
  },
  "hsl": {
    "h": 285.6,
    "s": 79.618,
    "l": 69.216
  },
  "oklch": {
    "l": 0.7064,
    "c": 0.19689,
    "h": 317.5
  },
  "luminance": 0.31822
}

Semantic roles & 50–950 ramp

primary
#D172EF
secondary
#D5F1CC
accent
#DC0A3C
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160F17
muted
#847E85

Preview Lab

Preview with #D172EF

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

Preview Lab → · Contrast checker → · Palette generator →

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