#D166D9#D166D9

#D166D9 is a light, vivid purple. Relative luminance 0.281; OKLCH L 67.9% C 0.194 H 324.8°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#D166D9
RGBrgb(209, 102, 217)
HSLhsl(296, 60%, 63%)
HSVhsv(296, 53%, 85%)
CMYKcmyk(3.7%, 53%, 0%, 14.9%)
CIE-LABlab(59.95, 58.14, -40.63)
CIE-LCHlch(59.95, 70.93, 325.05°)
OKLaboklab(67.91% 0.1587 -0.1121)
OKLCHoklch(67.91% 0.194 324.8)
XYZxyz(43.5692, 28.0701, 68.7553)
Luminance0.2807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166D9 #6ED966
analogous
#9766D9 #D166D9 #D966A8
triadic
#D166D9 #D9D166 #66D9D1
tetradic
#D166D9 #D99766 #6ED966 #66A8D9
square
#D166D9 #D99766 #6ED966 #66A8D9
split-complementary
#D166D9 #A8D966 #66D997
monochromatic
#95279D #C235CD #D166D9 #E097E5 #EEC8F1

Accessibility & contrast

On white

3.18
#D166D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#D166D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166D9
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166D9#FFFFFF#000000##000000
##D166D91.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5788DD
Deuteranopia (green-blind)
#7995D6
Tritanopia (blue-blind)
#D57496
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #d166d9;
/* rgb */ color: rgb(209, 102, 217);
/* oklch */ color: oklch(67.9% 0.194 324.8);
Tailwind
colors: {
  custom: {
    50: '#e296e5',
    500: '#d166d9',
    950: '#000000',
  },
}
SCSS
$custom: #d166d9;
$custom-light: #e296e5;
$custom-dark: #000000;
JSON
{
  "hex": "#d166d9",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 217
  },
  "hsl": {
    "h": 295.826,
    "s": 60.209,
    "l": 62.549
  },
  "oklch": {
    "l": 0.67908,
    "c": 0.19431,
    "h": 324.8
  },
  "luminance": 0.28068
}

Semantic roles & 50–950 ramp

primary
#D166D9
secondary
#BBE2B8
accent
#C81E29
background
#FEF9FE
surface
#FCF2FC
border
#D5CCD5
text
#160E16
muted
#847E84

Preview Lab

Preview with #D166D9

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

Preview Lab → · Contrast checker → · Palette generator →

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