#D17DEC#D17DEC

#D17DEC is a light, vivid purple. Relative luminance 0.343; OKLCH L 72.1% C 0.176 H 317.5°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#D17DEC
RGBrgb(209, 125, 236)
HSLhsl(285, 74%, 71%)
HSVhsv(285, 47%, 93%)
CMYKcmyk(11.4%, 47%, 0%, 7.5%)
CIE-LABlab(65.18, 50.35, -43.01)
CIE-LCHlch(65.18, 66.22, 319.49°)
OKLaboklab(72.06% 0.1301 -0.1192)
OKLCHoklch(72.06% 0.176 317.5)
XYZxyz(48.7663, 34.2802, 83.3885)
Luminance0.3428 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17DEC #98EC7D
analogous
#997DEC #D17DEC #EC7DD0
triadic
#D17DEC #ECD17D #7DECD1
tetradic
#D17DEC #EC997D #98EC7D #7DD0EC
square
#D17DEC #EC997D #98EC7D #7DD0EC
split-complementary
#D17DEC #D0EC7D #7DEC99
monochromatic
#A51ED0 #BE48E4 #D17DEC #E4B2F4 #F6E4FB

Accessibility & contrast

On white

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

On black

7.86
#D17DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17DEC
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17DEC#FFFFFF#000000##000000
##D17DEC1.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6999F0
Deuteranopia (green-blind)
#81A1E9
Tritanopia (blue-blind)
#D18DAA
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d17dec;
/* rgb */ color: rgb(209, 125, 236);
/* oklch */ color: oklch(72.1% 0.176 317.5);
Tailwind
colors: {
  custom: {
    50: '#e1a5f2',
    500: '#d17dec',
    950: '#000000',
  },
}
SCSS
$custom: #d17dec;
$custom-light: #e1a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d17dec",
  "rgb": {
    "r": 209,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 285.405,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.72064,
    "c": 0.17642,
    "h": 317.5
  },
  "luminance": 0.34279
}

Semantic roles & 50–950 ramp

primary
#D17DEC
secondary
#DBF1D3
accent
#D70F3F
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D17DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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