#D17DF2#D17DF2

#D17DF2 is a light, vivid purple. Relative luminance 0.346; OKLCH L 72.4% C 0.183 H 315.8°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#D17DF2
RGBrgb(209, 125, 242)
HSLhsl(283, 82%, 72%)
HSVhsv(283, 48%, 95%)
CMYKcmyk(13.6%, 48.3%, 0%, 5.1%)
CIE-LABlab(65.46, 51.56, -45.88)
CIE-LCHlch(65.46, 69.02, 318.33°)
OKLaboklab(72.36% 0.1309 -0.1275)
OKLCHoklch(72.36% 0.183 315.8)
XYZxyz(49.6527, 34.6348, 88.0568)
Luminance0.3463 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17DF2 #9EF27D
analogous
#977DF2 #D17DF2 #F27DD9
triadic
#D17DF2 #F2D17D #7DF2D1
tetradic
#D17DF2 #F2977D #9EF27D #7DD9F2
square
#D17DF2 #F2977D #9EF27D #7DD9F2
split-complementary
#D17DF2 #D9F27D #7DF297
monochromatic
#A616DE #BD45EC #D17DF2 #E5B5F8 #F5E3FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D17DF2#FFFFFF#000000##000000
##D17DF21.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)
#659AF6
Deuteranopia (green-blind)
#7EA1EF
Tritanopia (blue-blind)
#CF8EAC
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d17df2;
/* rgb */ color: rgb(209, 125, 242);
/* oklch */ color: oklch(72.4% 0.183 315.8);
Tailwind
colors: {
  custom: {
    50: '#e1a5f7',
    500: '#d17df2',
    950: '#000000',
  },
}
SCSS
$custom: #d17df2;
$custom-light: #e1a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d17df2",
  "rgb": {
    "r": 209,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 283.077,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.72363,
    "c": 0.1827,
    "h": 315.8
  },
  "luminance": 0.34633
}

Semantic roles & 50–950 ramp

primary
#D17DF2
secondary
#DFF4D7
accent
#DE0744
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D17DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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