#D17AFA#D17AFA

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

Color values

HEX#D17AFA
RGBrgb(209, 122, 250)
HSLhsl(281, 93%, 73%)
HSVhsv(281, 51%, 98%)
CMYKcmyk(16.4%, 51.2%, 0%, 2%)
CIE-LABlab(65.26, 54.72, -50.60)
CIE-LCHlch(65.26, 74.53, 317.24°)
OKLaboklab(72.34% 0.1358 -0.1411)
OKLCHoklch(72.34% 0.196 313.9)
XYZxyz(50.5065, 34.3778, 94.3990)
Luminance0.3438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17AFA #A3FA7A
analogous
#917AFA #D17AFA #FA7AE3
triadic
#D17AFA #FAD17A #7AFAD1
tetradic
#D17AFA #FA917A #A3FA7A #7AE3FA
square
#D17AFA #FA917A #A3FA7A #7AE3FA
split-complementary
#D17AFA #E3FA7A #7AFA91
monochromatic
#A609F1 #BD3FF8 #D17AFA #E5B5FC #F5E2FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D17AFA#FFFFFF#000000##000000
##D17AFA1.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)
#5C9AFE
Deuteranopia (green-blind)
#77A1F7
Tritanopia (blue-blind)
#CE8EAF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d17afa;
/* rgb */ color: rgb(209, 122, 250);
/* oklch */ color: oklch(72.3% 0.196 313.9);
Tailwind
colors: {
  custom: {
    50: '#e1a3fc',
    500: '#d17afa',
    950: '#000000',
  },
}
SCSS
$custom: #d17afa;
$custom-light: #e1a3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d17afa",
  "rgb": {
    "r": 209,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 280.781,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.72339,
    "c": 0.19583,
    "h": 313.9
  },
  "luminance": 0.34377
}

Semantic roles & 50–950 ramp

primary
#D17AFA
secondary
#E0F6D5
accent
#E6004A
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D17AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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