#D166E4#D166E4

#D166E4 is a light, highly saturated purple. Relative luminance 0.287; OKLCH L 68.5% C 0.204 H 321.4°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#D166E4
RGBrgb(209, 102, 228)
HSLhsl(291, 70%, 65%)
HSVhsv(291, 55%, 89%)
CMYKcmyk(8.3%, 55.3%, 0%, 10.6%)
CIE-LABlab(60.48, 60.17, -45.97)
CIE-LCHlch(60.48, 75.72, 322.62°)
OKLaboklab(68.47% 0.1598 -0.1276)
OKLCHoklch(68.47% 0.204 321.4)
XYZxyz(45.0479, 28.6616, 76.5431)
Luminance0.2866 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166E4 #79E466
analogous
#9266E4 #D166E4 #E466B8
triadic
#D166E4 #E4D166 #66E4D1
tetradic
#D166E4 #E49266 #79E466 #66B8E4
square
#D166E4 #E49266 #79E466 #66B8E4
split-complementary
#D166E4 #B8E466 #66E492
monochromatic
#9B1FB0 #C132DB #D166E4 #E19AED #F0CEF6

Accessibility & contrast

On white

3.12
#D166E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#D166E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166E4
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166E4#FFFFFF#000000##000000
##D166E41.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8AE8
Deuteranopia (green-blind)
#7396E1
Tritanopia (blue-blind)
#D3789C
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #d166e4;
/* rgb */ color: rgb(209, 102, 228);
/* oklch */ color: oklch(68.5% 0.204 321.4);
Tailwind
colors: {
  custom: {
    50: '#e296ed',
    500: '#d166e4',
    950: '#000000',
  },
}
SCSS
$custom: #d166e4;
$custom-light: #e296ed;
$custom-dark: #000000;
JSON
{
  "hex": "#d166e4",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 228
  },
  "hsl": {
    "h": 290.952,
    "s": 70,
    "l": 64.706
  },
  "oklch": {
    "l": 0.68469,
    "c": 0.20446,
    "h": 321.4
  },
  "luminance": 0.28659
}

Semantic roles & 50–950 ramp

primary
#D166E4
secondary
#C4E9BD
accent
#D21430
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E16
muted
#847E84

Preview Lab

Preview with #D166E4

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

Preview Lab → · Contrast checker → · Palette generator →

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