#D17FEF#D17FEF

#D17FEF is a light, vivid purple. Relative luminance 0.350; OKLCH L 72.5% C 0.176 H 316.4°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#D17FEF
RGBrgb(209, 127, 239)
HSLhsl(284, 78%, 72%)
HSVhsv(284, 47%, 94%)
CMYKcmyk(12.6%, 46.9%, 0%, 6.3%)
CIE-LABlab(65.72, 49.92, -43.82)
CIE-LCHlch(65.72, 66.42, 318.72°)
OKLaboklab(72.51% 0.1278 -0.1215)
OKLCHoklch(72.51% 0.176 316.4)
XYZxyz(49.4615, 34.9675, 85.7885)
Luminance0.3497 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17FEF #9DEF7F
analogous
#997FEF #D17FEF #EF7FD5
triadic
#D17FEF #EFD17F #7FEFD1
tetradic
#D17FEF #EF997F #9DEF7F #7FD5EF
square
#D17FEF #EF997F #9DEF7F #7FD5EF
split-complementary
#D17FEF #D5EF7F #7FEF99
monochromatic
#A61BD9 #BD49E8 #D17FEF #E5B5F6 #F5E4FC

Accessibility & contrast

On white

2.63
#D17FEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.99
#D17FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17FEF
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17FEF#FFFFFF#000000##000000
##D17FEF1.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9BF3
Deuteranopia (green-blind)
#81A2EC
Tritanopia (blue-blind)
#D08FAC
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d17fef;
/* rgb */ color: rgb(209, 127, 239);
/* oklch */ color: oklch(72.5% 0.176 316.4);
Tailwind
colors: {
  custom: {
    50: '#e1a6f4',
    500: '#d17fef',
    950: '#000000',
  },
}
SCSS
$custom: #d17fef;
$custom-light: #e1a6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d17fef",
  "rgb": {
    "r": 209,
    "g": 127,
    "b": 239
  },
  "hsl": {
    "h": 283.929,
    "s": 77.778,
    "l": 71.765
  },
  "oklch": {
    "l": 0.7251,
    "c": 0.17632,
    "h": 316.4
  },
  "luminance": 0.34966
}

Semantic roles & 50–950 ramp

primary
#D17FEF
secondary
#DEF3D7
accent
#DA0B43
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#151017
muted
#847F85

Preview Lab

Preview with #D17FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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