#D17AEF#D17AEF

#D17AEF is a light, vivid purple. Relative luminance 0.337; OKLCH L 71.8% C 0.184 H 316.9°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#D17AEF
RGBrgb(209, 122, 239)
HSLhsl(285, 79%, 71%)
HSVhsv(285, 49%, 94%)
CMYKcmyk(12.6%, 49%, 0%, 6.3%)
CIE-LABlab(64.73, 52.48, -45.38)
CIE-LCHlch(64.73, 69.38, 319.15°)
OKLaboklab(71.77% 0.1346 -0.126)
OKLCHoklch(71.77% 0.184 316.9)
XYZxyz(48.8318, 33.7079, 85.5786)
Luminance0.3371 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17AEF #98EF7A
analogous
#967AEF #D17AEF #EF7AD3
triadic
#D17AEF #EFD17A #7AEFD1
tetradic
#D17AEF #EF967A #98EF7A #7AD3EF
square
#D17AEF #EF967A #98EF7A #7AD3EF
split-complementary
#D17AEF #D3EF7A #7AEF96
monochromatic
#A51AD5 #BE43E8 #D17AEF #E4B1F6 #F6E4FC

Accessibility & contrast

On white

2.71
#D17AEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#D17AEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17AEF
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17AEF#FFFFFF#000000##000000
##D17AEF1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6397F3
Deuteranopia (green-blind)
#7DA0EC
Tritanopia (blue-blind)
#D08BAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d17aef;
/* rgb */ color: rgb(209, 122, 239);
/* oklch */ color: oklch(71.8% 0.184 316.9);
Tailwind
colors: {
  custom: {
    50: '#e1a3f4',
    500: '#d17aef',
    950: '#000000',
  },
}
SCSS
$custom: #d17aef;
$custom-light: #e1a3f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d17aef",
  "rgb": {
    "r": 209,
    "g": 122,
    "b": 239
  },
  "hsl": {
    "h": 284.615,
    "s": 78.523,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71773,
    "c": 0.18435,
    "h": 316.9
  },
  "luminance": 0.33706
}

Semantic roles & 50–950 ramp

primary
#D17AEF
secondary
#DBF2D3
accent
#DB0B40
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D17AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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