#D166F2#D166F2

#D166F2 is a light, highly saturated purple. Relative luminance 0.295; OKLCH L 69.2% C 0.218 H 317.6°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#D166F2
RGBrgb(209, 102, 242)
HSLhsl(286, 84%, 67%)
HSVhsv(286, 58%, 95%)
CMYKcmyk(13.6%, 57.9%, 0%, 5.1%)
CIE-LABlab(61.19, 62.85, -52.63)
CIE-LCHlch(61.19, 81.98, 320.06°)
OKLaboklab(69.22% 0.1606 -0.1469)
OKLCHoklch(69.22% 0.218 317.6)
XYZxyz(47.0706, 29.4706, 87.1961)
Luminance0.2947 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166F2 #87F266
analogous
#8B66F2 #D166F2 #F266CD
triadic
#D166F2 #F2D166 #66F2D1
tetradic
#D166F2 #F28B66 #87F266 #66CDF2
square
#D166F2 #F28B66 #87F266 #66CDF2
split-complementary
#D166F2 #CDF266 #66F28B
monochromatic
#A011CC #C02EED #D166F2 #E29EF7 #F3D7FC

Accessibility & contrast

On white

3.05
#D166F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#D166F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166F2
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166F2#FFFFFF#000000##000000
##D166F21.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#428DF6
Deuteranopia (green-blind)
#6B97EE
Tritanopia (blue-blind)
#D07DA3
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #d166f2;
/* rgb */ color: rgb(209, 102, 242);
/* oklch */ color: oklch(69.2% 0.218 317.6);
Tailwind
colors: {
  custom: {
    50: '#e297f7',
    500: '#d166f2',
    950: '#000000',
  },
}
SCSS
$custom: #d166f2;
$custom-light: #e297f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d166f2",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 242
  },
  "hsl": {
    "h": 285.857,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.69221,
    "c": 0.21771,
    "h": 317.6
  },
  "luminance": 0.29469
}

Semantic roles & 50–950 ramp

primary
#D166F2
secondary
#CEF0C4
accent
#E10539
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160E17
muted
#847E85

Preview Lab

Preview with #D166F2

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

Preview Lab → · Contrast checker → · Palette generator →

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