#D17FE5#D17FE5

#D17FE5 is a light, vivid purple. Relative luminance 0.344; OKLCH L 72.0% C 0.166 H 319.6°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#D17FE5
RGBrgb(209, 127, 229)
HSLhsl(288, 66%, 70%)
HSVhsv(288, 45%, 90%)
CMYKcmyk(8.7%, 44.5%, 0%, 10.2%)
CIE-LABlab(65.27, 47.93, -39.00)
CIE-LCHlch(65.27, 61.79, 320.86°)
OKLaboklab(72.03% 0.1262 -0.1076)
OKLCHoklch(72.03% 0.166 319.6)
XYZxyz(48.0249, 34.3929, 78.2223)
Luminance0.3439 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17FE5 #93E57F
analogous
#9E7FE5 #D17FE5 #E57FC6
triadic
#D17FE5 #E5D17F #7FE5D1
tetradic
#D17FE5 #E59E7F #93E57F #7FC6E5
square
#D17FE5 #E59E7F #93E57F #7FC6E5
split-complementary
#D17FE5 #C6E57F #7FE59E
monochromatic
#A427C2 #BF4CDB #D17FE5 #E3B2EF #F6E5FA

Accessibility & contrast

On white

2.67
#D17FE5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#D17FE5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17FE5
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17FE5#FFFFFF#000000##000000
##D17FE51.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F99E9
Deuteranopia (green-blind)
#86A1E2
Tritanopia (blue-blind)
#D28CA7
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d17fe5;
/* rgb */ color: rgb(209, 127, 229);
/* oklch */ color: oklch(72.0% 0.166 319.6);
Tailwind
colors: {
  custom: {
    50: '#e1a6ed',
    500: '#d17fe5',
    950: '#000000',
  },
}
SCSS
$custom: #d17fe5;
$custom-light: #e1a6ed;
$custom-dark: #000000;
JSON
{
  "hex": "#d17fe5",
  "rgb": {
    "r": 209,
    "g": 127,
    "b": 229
  },
  "hsl": {
    "h": 288.235,
    "s": 66.234,
    "l": 69.804
  },
  "oklch": {
    "l": 0.72028,
    "c": 0.16587,
    "h": 319.6
  },
  "luminance": 0.34391
}

Semantic roles & 50–950 ramp

primary
#D17FE5
secondary
#D7EED1
accent
#CE173B
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#150F16
muted
#847F84

Preview Lab

Preview with #D17FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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