#D17AFE#D17AFE

#D17AFE is a light, highly saturated violet. Relative luminance 0.346; OKLCH L 72.6% C 0.200 H 312.9°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#D17AFE
RGBrgb(209, 122, 254)
HSLhsl(280, 99%, 74%)
HSVhsv(280, 52%, 100%)
CMYKcmyk(17.7%, 52%, 0%, 0.4%)
CIE-LABlab(65.46, 55.55, -52.48)
CIE-LCHlch(65.46, 76.42, 316.63°)
OKLaboklab(72.55% 0.1361 -0.1466)
OKLCHoklch(72.55% 0.2 312.9)
XYZxyz(51.1404, 34.6314, 97.7373)
Luminance0.3463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17AFE #A7FE7A
analogous
#8F7AFE #D17AFE #FE7AE9
triadic
#D17AFE #FED17A #7AFED1
tetradic
#D17AFE #FE8F7A #A7FE7A #7AE9FE
square
#D17AFE #FE8F7A #A7FE7A #7AE9FE
split-complementary
#D17AFE #E9FE7A #7AFE8F
monochromatic
#A702FC #BC3DFE #D17AFE #E6B7FE #F4E1FF

Accessibility & contrast

On white

2.65
#D17AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#D17AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17AFE
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17AFE#FFFFFF#000000##000000
##D17AFE1.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#599AFF
Deuteranopia (green-blind)
#74A1FB
Tritanopia (blue-blind)
#CD90B1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d17afe;
/* rgb */ color: rgb(209, 122, 254);
/* oklch */ color: oklch(72.6% 0.200 312.9);
Tailwind
colors: {
  custom: {
    50: '#e2a3ff',
    500: '#d17afe',
    950: '#000000',
  },
}
SCSS
$custom: #d17afe;
$custom-light: #e2a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d17afe",
  "rgb": {
    "r": 209,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 279.545,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72551,
    "c": 0.20005,
    "h": 312.9
  },
  "luminance": 0.3463
}

Semantic roles & 50–950 ramp

primary
#D17AFE
secondary
#E0F7D4
accent
#E6004E
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D17AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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