#D166E2#D166E2

#D166E2 is a light, highly saturated purple. Relative luminance 0.285; OKLCH L 68.4% C 0.203 H 322.0°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#D166E2
RGBrgb(209, 102, 226)
HSLhsl(292, 68%, 64%)
HSVhsv(292, 55%, 89%)
CMYKcmyk(7.5%, 54.9%, 0%, 11.4%)
CIE-LABlab(60.38, 59.80, -45.00)
CIE-LCHlch(60.38, 74.84, 323.04°)
OKLaboklab(68.36% 0.1596 -0.1248)
OKLCHoklch(68.36% 0.203 322)
XYZxyz(44.7719, 28.5512, 75.0894)
Luminance0.2855 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166E2 #77E266
analogous
#9366E2 #D166E2 #E266B5
triadic
#D166E2 #E2D166 #66E2D1
tetradic
#D166E2 #E29366 #77E266 #66B5E2
square
#D166E2 #E29366 #77E266 #66B5E2
split-complementary
#D166E2 #B5E266 #66E293
monochromatic
#9A21AD #C233D8 #D166E2 #E099EC #F0CDF6

Accessibility & contrast

On white

3.13
#D166E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#D166E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166E2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166E2#FFFFFF#000000##000000
##D166E21.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#508AE6
Deuteranopia (green-blind)
#7496DF
Tritanopia (blue-blind)
#D3779B
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #d166e2;
/* rgb */ color: rgb(209, 102, 226);
/* oklch */ color: oklch(68.4% 0.203 322.0);
Tailwind
colors: {
  custom: {
    50: '#e296eb',
    500: '#d166e2',
    950: '#000000',
  },
}
SCSS
$custom: #d166e2;
$custom-light: #e296eb;
$custom-dark: #000000;
JSON
{
  "hex": "#d166e2",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 226
  },
  "hsl": {
    "h": 291.774,
    "s": 68.132,
    "l": 64.314
  },
  "oklch": {
    "l": 0.68365,
    "c": 0.2026,
    "h": 322
  },
  "luminance": 0.28549
}

Semantic roles & 50–950 ramp

primary
#D166E2
secondary
#C2E7BC
accent
#D0152F
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E16
muted
#847E84

Preview Lab

Preview with #D166E2

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

Preview Lab → · Contrast checker → · Palette generator →

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