#D166EA#D166EA

#D166EA is a light, highly saturated purple. Relative luminance 0.290; OKLCH L 68.8% C 0.210 H 319.7°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#D166EA
RGBrgb(209, 102, 234)
HSLhsl(289, 76%, 66%)
HSVhsv(289, 56%, 92%)
CMYKcmyk(10.7%, 56.4%, 0%, 8.2%)
CIE-LABlab(60.78, 61.31, -48.84)
CIE-LCHlch(60.78, 78.38, 321.46°)
OKLaboklab(68.79% 0.1602 -0.1359)
OKLCHoklch(68.79% 0.21 319.7)
XYZxyz(45.8953, 29.0005, 81.0061)
Luminance0.2900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166EA #7FEA66
analogous
#8F66EA #D166EA #EA66C1
triadic
#D166EA #EAD166 #66EAD1
tetradic
#D166EA #EA8F66 #7FEA66 #66C1EA
square
#D166EA #EA8F66 #7FEA66 #66C1EA
split-complementary
#D166EA #C1EA66 #66EA8F
monochromatic
#9D1ABC #C130E3 #D166EA #E19CF1 #F1D2F9

Accessibility & contrast

On white

3.09
#D166EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#D166EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166EA
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166EA#FFFFFF#000000##000000
##D166EA1.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8BEE
Deuteranopia (green-blind)
#7096E7
Tritanopia (blue-blind)
#D27A9F
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #d166ea;
/* rgb */ color: rgb(209, 102, 234);
/* oklch */ color: oklch(68.8% 0.210 319.7);
Tailwind
colors: {
  custom: {
    50: '#e296f1',
    500: '#d166ea',
    950: '#000000',
  },
}
SCSS
$custom: #d166ea;
$custom-light: #e296f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d166ea",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 234
  },
  "hsl": {
    "h": 288.636,
    "s": 75.862,
    "l": 65.882
  },
  "oklch": {
    "l": 0.68786,
    "c": 0.2101,
    "h": 319.7
  },
  "luminance": 0.28999
}

Semantic roles & 50–950 ramp

primary
#D166EA
secondary
#C8ECC0
accent
#D80D34
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E17
muted
#847E85

Preview Lab

Preview with #D166EA

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

Preview Lab → · Contrast checker → · Palette generator →

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