#D166EB#D166EB

#D166EB is a light, highly saturated purple. Relative luminance 0.291; OKLCH L 68.8% C 0.211 H 319.4°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#D166EB
RGBrgb(209, 102, 235)
HSLhsl(288, 77%, 66%)
HSVhsv(288, 57%, 92%)
CMYKcmyk(11.1%, 56.6%, 0%, 7.8%)
CIE-LABlab(60.83, 61.50, -49.32)
CIE-LCHlch(60.83, 78.83, 321.27°)
OKLaboklab(68.84% 0.1603 -0.1373)
OKLCHoklch(68.84% 0.211 319.4)
XYZxyz(46.0393, 29.0581, 81.7648)
Luminance0.2906 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166EB #80EB66
analogous
#8E66EB #D166EB #EB66C2
triadic
#D166EB #EBD166 #66EBD1
tetradic
#D166EB #EB8E66 #80EB66 #66C2EB
square
#D166EB #EB8E66 #80EB66 #66C2EB
split-complementary
#D166EB #C2EB66 #66EB8E
monochromatic
#9E19BE #C130E4 #D166EB #E19CF2 #F2D2F9

Accessibility & contrast

On white

3.08
#D166EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#D166EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166EB
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166EB#FFFFFF#000000##000000
##D166EB1.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#498BEF
Deuteranopia (green-blind)
#6F97E8
Tritanopia (blue-blind)
#D27A9F
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #d166eb;
/* rgb */ color: rgb(209, 102, 235);
/* oklch */ color: oklch(68.8% 0.211 319.4);
Tailwind
colors: {
  custom: {
    50: '#e297f2',
    500: '#d166eb',
    950: '#000000',
  },
}
SCSS
$custom: #d166eb;
$custom-light: #e297f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d166eb",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 288.271,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6884,
    "c": 0.21104,
    "h": 319.4
  },
  "luminance": 0.29056
}

Semantic roles & 50–950 ramp

primary
#D166EB
secondary
#C9ECC1
accent
#D90C34
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E17
muted
#847E85

Preview Lab

Preview with #D166EB

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

Preview Lab → · Contrast checker → · Palette generator →

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