#D17DFD#D17DFD

#D17DFD is a light, vivid violet. Relative luminance 0.353; OKLCH L 72.9% C 0.194 H 312.8°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#D17DFD
RGBrgb(209, 125, 253)
HSLhsl(279, 97%, 74%)
HSVhsv(279, 51%, 99%)
CMYKcmyk(17.4%, 50.6%, 0%, 0.8%)
CIE-LABlab(65.99, 53.82, -51.09)
CIE-LCHlch(65.99, 74.21, 316.49°)
OKLaboklab(72.93% 0.1321 -0.1426)
OKLCHoklch(72.93% 0.194 312.8)
XYZxyz(51.3547, 35.3156, 97.0208)
Luminance0.3531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17DFD #A9FD7D
analogous
#917DFD #D17DFD #FD7DE9
triadic
#D17DFD #FDD17D #7DFDD1
tetradic
#D17DFD #FD917D #A9FD7D #7DE9FD
square
#D17DFD #FD917D #A9FD7D #7DE9FD
split-complementary
#D17DFD #E9FD7D #7DFD91
monochromatic
#A604FB #BC41FC #D17DFD #E6B9FE #F4E1FF

Accessibility & contrast

On white

2.60
#D17DFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#D17DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17DFD
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17DFD#FFFFFF#000000##000000
##D17DFD1.002.608.068.06
#FFFFFF2.601.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9CFF
Deuteranopia (green-blind)
#78A2FA
Tritanopia (blue-blind)
#CD92B2
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d17dfd;
/* rgb */ color: rgb(209, 125, 253);
/* oklch */ color: oklch(72.9% 0.194 312.8);
Tailwind
colors: {
  custom: {
    50: '#e1a5fe',
    500: '#d17dfd',
    950: '#000000',
  },
}
SCSS
$custom: #d17dfd;
$custom-light: #e1a5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d17dfd",
  "rgb": {
    "r": 209,
    "g": 125,
    "b": 253
  },
  "hsl": {
    "h": 279.375,
    "s": 96.97,
    "l": 74.118
  },
  "oklch": {
    "l": 0.72928,
    "c": 0.19437,
    "h": 312.8
  },
  "luminance": 0.35314
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D17DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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