#D166E7#D166E7

#D166E7 is a light, highly saturated purple. Relative luminance 0.288; OKLCH L 68.6% C 0.207 H 320.5°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#D166E7
RGBrgb(209, 102, 231)
HSLhsl(290, 73%, 65%)
HSVhsv(290, 56%, 91%)
CMYKcmyk(9.5%, 55.8%, 0%, 9.4%)
CIE-LABlab(60.63, 60.74, -47.41)
CIE-LCHlch(60.63, 77.05, 322.03°)
OKLaboklab(68.63% 0.16 -0.1317)
OKLCHoklch(68.63% 0.207 320.5)
XYZxyz(45.4680, 28.8296, 78.7555)
Luminance0.2883 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166E7 #7CE766
analogous
#9066E7 #D166E7 #E766BD
triadic
#D166E7 #E7D166 #66E7D1
tetradic
#D166E7 #E79066 #7CE766 #66BDE7
square
#D166E7 #E79066 #7CE766 #66BDE7
split-complementary
#D166E7 #BDE766 #66E790
monochromatic
#9C1DB6 #C131DF #D166E7 #E19BEF #F1D0F8

Accessibility & contrast

On white

3.10
#D166E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#D166E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166E7
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166E7#FFFFFF#000000##000000
##D166E71.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8BEB
Deuteranopia (green-blind)
#7196E4
Tritanopia (blue-blind)
#D2799D
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #d166e7;
/* rgb */ color: rgb(209, 102, 231);
/* oklch */ color: oklch(68.6% 0.207 320.5);
Tailwind
colors: {
  custom: {
    50: '#e296ef',
    500: '#d166e7',
    950: '#000000',
  },
}
SCSS
$custom: #d166e7;
$custom-light: #e296ef;
$custom-dark: #000000;
JSON
{
  "hex": "#d166e7",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 231
  },
  "hsl": {
    "h": 289.767,
    "s": 72.881,
    "l": 65.294
  },
  "oklch": {
    "l": 0.68627,
    "c": 0.20727,
    "h": 320.5
  },
  "luminance": 0.28828
}

Semantic roles & 50–950 ramp

primary
#D166E7
secondary
#C6EABF
accent
#D51132
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E16
muted
#847E84

Preview Lab

Preview with #D166E7

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

Preview Lab → · Contrast checker → · Palette generator →

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