#D17AFD#D17AFD

#D17AFD is a light, vivid violet. Relative luminance 0.346; OKLCH L 72.5% C 0.199 H 313.1°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#D17AFD
RGBrgb(209, 122, 253)
HSLhsl(280, 97%, 74%)
HSVhsv(280, 52%, 99%)
CMYKcmyk(17.4%, 51.8%, 0%, 0.8%)
CIE-LABlab(65.41, 55.34, -52.01)
CIE-LCHlch(65.41, 75.95, 316.78°)
OKLaboklab(72.5% 0.136 -0.1452)
OKLCHoklch(72.5% 0.199 313.1)
XYZxyz(50.9806, 34.5675, 96.8961)
Luminance0.3457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17AFD #A6FD7A
analogous
#8F7AFD #D17AFD #FD7AE8
triadic
#D17AFD #FDD17A #7AFDD1
tetradic
#D17AFD #FD8F7A #A6FD7A #7AE8FD
square
#D17AFD #FD8F7A #A6FD7A #7AE8FD
split-complementary
#D17AFD #E8FD7A #7AFD8F
monochromatic
#A704F9 #BC3EFC #D17AFD #E6B6FE #F5E1FF

Accessibility & contrast

On white

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

On black

7.91
#D17AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17AFD
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17AFD#FFFFFF#000000##000000
##D17AFD1.002.657.917.91
#FFFFFF2.651.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#599AFF
Deuteranopia (green-blind)
#75A1FA
Tritanopia (blue-blind)
#CD8FB0
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d17afd;
/* rgb */ color: rgb(209, 122, 253);
/* oklch */ color: oklch(72.5% 0.199 313.1);
Tailwind
colors: {
  custom: {
    50: '#e2a3fe',
    500: '#d17afd',
    950: '#000000',
  },
}
SCSS
$custom: #d17afd;
$custom-light: #e2a3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d17afd",
  "rgb": {
    "r": 209,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 279.847,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.72497,
    "c": 0.19899,
    "h": 313.1
  },
  "luminance": 0.34566
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D17AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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