#D166D8#D166D8

#D166D8 is a light, vivid purple. Relative luminance 0.280; OKLCH L 67.9% C 0.193 H 325.1°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#D166D8
RGBrgb(209, 102, 216)
HSLhsl(296, 59%, 62%)
HSVhsv(296, 53%, 85%)
CMYKcmyk(3.2%, 52.8%, 0%, 15.3%)
CIE-LABlab(59.91, 57.96, -40.14)
CIE-LCHlch(59.91, 70.51, 325.29°)
OKLaboklab(67.86% 0.1586 -0.1107)
OKLCHoklch(67.86% 0.193 325.1)
XYZxyz(43.4395, 28.0182, 68.0724)
Luminance0.2802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166D8 #6DD866
analogous
#9866D8 #D166D8 #D866A6
triadic
#D166D8 #D8D166 #66D8D1
tetradic
#D166D8 #D89866 #6DD866 #66A6D8
square
#D166D8 #D89866 #6DD866 #66A6D8
split-complementary
#D166D8 #A6D866 #66D898
monochromatic
#95289C #C235CC #D166D8 #E097E4 #EEC8F1

Accessibility & contrast

On white

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

On black

6.60
#D166D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166D8
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166D8#FFFFFF#000000##000000
##D166D81.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d166d8;
/* rgb */ color: rgb(209, 102, 216);
/* oklch */ color: oklch(67.9% 0.193 325.1);
Tailwind
colors: {
  custom: {
    50: '#e296e4',
    500: '#d166d8',
    950: '#000000',
  },
}
SCSS
$custom: #d166d8;
$custom-light: #e296e4;
$custom-dark: #000000;
JSON
{
  "hex": "#d166d8",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 216
  },
  "hsl": {
    "h": 296.316,
    "s": 59.375,
    "l": 62.353
  },
  "oklch": {
    "l": 0.67858,
    "c": 0.19341,
    "h": 325.1
  },
  "luminance": 0.28016
}

Semantic roles & 50–950 ramp

primary
#D166D8
secondary
#BBE2B8
accent
#C71E29
background
#FEF9FE
surface
#FCF2FC
border
#D5CCD5
text
#160E15
muted
#847E84

Preview Lab

Preview with #D166D8

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

Preview Lab → · Contrast checker → · Palette generator →

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