#D166F5#D166F5

#D166F5 is a light, highly saturated purple. Relative luminance 0.297; OKLCH L 69.4% C 0.221 H 316.8°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#D166F5
RGBrgb(209, 102, 245)
HSLhsl(285, 88%, 68%)
HSVhsv(285, 58%, 96%)
CMYKcmyk(14.7%, 58.4%, 0%, 3.9%)
CIE-LABlab(61.35, 63.44, -54.04)
CIE-LCHlch(61.35, 83.33, 319.57°)
OKLaboklab(69.39% 0.1608 -0.1511)
OKLCHoklch(69.39% 0.221 316.8)
XYZxyz(47.5249, 29.6524, 89.5885)
Luminance0.2965 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166F5 #8AF566
analogous
#8966F5 #D166F5 #F566D1
triadic
#D166F5 #F5D166 #66F5D1
tetradic
#D166F5 #F58966 #8AF566 #66D1F5
square
#D166F5 #F58966 #8AF566 #66D1F5
split-complementary
#D166F5 #D1F566 #66F589
monochromatic
#A10ED3 #C02DF1 #D166F5 #E29FF9 #F4D9FD

Accessibility & contrast

On white

3.03
#D166F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#D166F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166F5
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166F5#FFFFFF#000000##000000
##D166F51.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8DFA
Deuteranopia (green-blind)
#6997F1
Tritanopia (blue-blind)
#CF7EA4
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #d166f5;
/* rgb */ color: rgb(209, 102, 245);
/* oklch */ color: oklch(69.4% 0.221 316.8);
Tailwind
colors: {
  custom: {
    50: '#e297f9',
    500: '#d166f5',
    950: '#000000',
  },
}
SCSS
$custom: #d166f5;
$custom-light: #e297f9;
$custom-dark: #000000;
JSON
{
  "hex": "#d166f5",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 245
  },
  "hsl": {
    "h": 284.895,
    "s": 87.73,
    "l": 68.039
  },
  "oklch": {
    "l": 0.69388,
    "c": 0.22059,
    "h": 316.8
  },
  "luminance": 0.29651
}

Semantic roles & 50–950 ramp

primary
#D166F5
secondary
#D1F1C6
accent
#E4013A
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160E17
muted
#847E85

Preview Lab

Preview with #D166F5

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

Preview Lab → · Contrast checker → · Palette generator →

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