#D166E8#D166E8

#D166E8 is a light, highly saturated purple. Relative luminance 0.289; OKLCH L 68.7% C 0.208 H 320.3°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#D166E8
RGBrgb(209, 102, 232)
HSLhsl(289, 74%, 65%)
HSVhsv(289, 56%, 91%)
CMYKcmyk(9.9%, 56%, 0%, 9%)
CIE-LABlab(60.68, 60.93, -47.89)
CIE-LCHlch(60.68, 77.49, 321.83°)
OKLaboklab(68.68% 0.1601 -0.1331)
OKLCHoklch(68.68% 0.208 320.3)
XYZxyz(45.6096, 28.8862, 79.5014)
Luminance0.2888 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166E8 #7DE866
analogous
#9066E8 #D166E8 #E866BE
triadic
#D166E8 #E8D166 #66E8D1
tetradic
#D166E8 #E89066 #7DE866 #66BEE8
square
#D166E8 #E89066 #7DE866 #66BEE8
split-complementary
#D166E8 #BEE866 #66E890
monochromatic
#9C1CB8 #C131E0 #D166E8 #E19BF0 #F1D0F8

Accessibility & contrast

On white

3.10
#D166E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.78
#D166E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166E8
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166E8#FFFFFF#000000##000000
##D166E81.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8BEC
Deuteranopia (green-blind)
#7196E5
Tritanopia (blue-blind)
#D2799E
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #d166e8;
/* rgb */ color: rgb(209, 102, 232);
/* oklch */ color: oklch(68.7% 0.208 320.3);
Tailwind
colors: {
  custom: {
    50: '#e296f0',
    500: '#d166e8',
    950: '#000000',
  },
}
SCSS
$custom: #d166e8;
$custom-light: #e296f0;
$custom-dark: #000000;
JSON
{
  "hex": "#d166e8",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 232
  },
  "hsl": {
    "h": 289.385,
    "s": 73.864,
    "l": 65.49
  },
  "oklch": {
    "l": 0.6868,
    "c": 0.20821,
    "h": 320.3
  },
  "luminance": 0.28884
}

Semantic roles & 50–950 ramp

primary
#D166E8
secondary
#C7EBBF
accent
#D61033
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E16
muted
#847E84

Preview Lab

Preview with #D166E8

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

Preview Lab → · Contrast checker → · Palette generator →

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