#D166EF#D166EF

#D166EF is a light, highly saturated purple. Relative luminance 0.293; OKLCH L 69.1% C 0.215 H 318.3°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#D166EF
RGBrgb(209, 102, 239)
HSLhsl(287, 81%, 67%)
HSVhsv(287, 57%, 94%)
CMYKcmyk(12.6%, 57.3%, 0%, 6.3%)
CIE-LABlab(61.04, 62.27, -51.22)
CIE-LCHlch(61.04, 80.62, 320.56°)
OKLaboklab(69.06% 0.1605 -0.1428)
OKLCHoklch(69.06% 0.215 318.3)
XYZxyz(46.6237, 29.2919, 84.8426)
Luminance0.2929 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166EF #84EF66
analogous
#8D66EF #D166EF #EF66C9
triadic
#D166EF #EFD166 #66EFD1
tetradic
#D166EF #EF8D66 #84EF66 #66C9EF
square
#D166EF #EF8D66 #84EF66 #66C9EF
split-complementary
#D166EF #C9EF66 #66EF8D
monochromatic
#9F15C6 #C02FE9 #D166EF #E29DF5 #F2D5FB

Accessibility & contrast

On white

3.06
#D166EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#D166EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166EF
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166EF#FFFFFF#000000##000000
##D166EF1.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#458CF3
Deuteranopia (green-blind)
#6D97EB
Tritanopia (blue-blind)
#D17CA1
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #d166ef;
/* rgb */ color: rgb(209, 102, 239);
/* oklch */ color: oklch(69.1% 0.215 318.3);
Tailwind
colors: {
  custom: {
    50: '#e297f5',
    500: '#d166ef',
    950: '#000000',
  },
}
SCSS
$custom: #d166ef;
$custom-light: #e297f5;
$custom-dark: #000000;
JSON
{
  "hex": "#d166ef",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 239
  },
  "hsl": {
    "h": 286.861,
    "s": 81.065,
    "l": 66.863
  },
  "oklch": {
    "l": 0.69057,
    "c": 0.21485,
    "h": 318.3
  },
  "luminance": 0.2929
}

Semantic roles & 50–950 ramp

primary
#D166EF
secondary
#CCEEC2
accent
#DD0837
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160E17
muted
#847E85

Preview Lab

Preview with #D166EF

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

Preview Lab → · Contrast checker → · Palette generator →

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