#D17DFB#D17DFB

#D17DFB is a light, vivid purple. Relative luminance 0.352; OKLCH L 72.8% C 0.192 H 313.3°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#D17DFB
RGBrgb(209, 125, 251)
HSLhsl(280, 94%, 74%)
HSVhsv(280, 50%, 98%)
CMYKcmyk(16.7%, 50.2%, 0%, 1.6%)
CIE-LABlab(65.90, 53.40, -50.15)
CIE-LCHlch(65.90, 73.26, 316.80°)
OKLaboklab(72.82% 0.1319 -0.1398)
OKLCHoklch(72.82% 0.192 313.3)
XYZxyz(51.0378, 35.1888, 95.3516)
Luminance0.3519 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17DFB #A7FB7D
analogous
#927DFB #D17DFB #FB7DE6
triadic
#D17DFB #FBD17D #7DFBD1
tetradic
#D17DFB #FB927D #A7FB7D #7DE6FB
square
#D17DFB #FB927D #A7FB7D #7DE6FB
split-complementary
#D17DFB #E6FB7D #7DFB92
monochromatic
#A708F6 #BC42F9 #D17DFB #E6B8FD #F4E1FE

Accessibility & contrast

On white

2.61
#D17DFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#D17DFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17DFB
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17DFB#FFFFFF#000000##000000
##D17DFB1.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9BFF
Deuteranopia (green-blind)
#79A2F8
Tritanopia (blue-blind)
#CD91B1
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d17dfb;
/* rgb */ color: rgb(209, 125, 251);
/* oklch */ color: oklch(72.8% 0.192 313.3);
Tailwind
colors: {
  custom: {
    50: '#e1a5fd',
    500: '#d17dfb',
    950: '#000000',
  },
}
SCSS
$custom: #d17dfb;
$custom-light: #e1a5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d17dfb",
  "rgb": {
    "r": 209,
    "g": 125,
    "b": 251
  },
  "hsl": {
    "h": 280,
    "s": 94.03,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72824,
    "c": 0.19224,
    "h": 313.3
  },
  "luminance": 0.35188
}

Semantic roles & 50–950 ramp

primary
#D17DFB
secondary
#E0F6D5
accent
#E6004C
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D17DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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