#D166F0#D166F0

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

Color values

HEX#D166F0
RGBrgb(209, 102, 240)
HSLhsl(287, 82%, 67%)
HSVhsv(287, 58%, 94%)
CMYKcmyk(12.9%, 57.5%, 0%, 5.9%)
CIE-LABlab(61.09, 62.46, -51.69)
CIE-LCHlch(61.09, 81.08, 320.39°)
OKLaboklab(69.11% 0.1606 -0.1442)
OKLCHoklch(69.11% 0.216 318.1)
XYZxyz(46.7719, 29.3512, 85.6228)
Luminance0.2935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166F0 #85F066
analogous
#8C66F0 #D166F0 #F066CA
triadic
#D166F0 #F0D166 #66F0D1
tetradic
#D166F0 #F08C66 #85F066 #66CAF0
square
#D166F0 #F08C66 #85F066 #66CAF0
split-complementary
#D166F0 #CAF066 #66F08C
monochromatic
#9F14C8 #C02EEB #D166F0 #E29EF5 #F3D5FB

Accessibility & contrast

On white

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

On black

6.87
#D166F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166F0
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166F0#FFFFFF#000000##000000
##D166F01.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#448CF4
Deuteranopia (green-blind)
#6C97EC
Tritanopia (blue-blind)
#D17CA2
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #d166f0;
/* rgb */ color: rgb(209, 102, 240);
/* oklch */ color: oklch(69.1% 0.216 318.1);
Tailwind
colors: {
  custom: {
    50: '#e297f5',
    500: '#d166f0',
    950: '#000000',
  },
}
SCSS
$custom: #d166f0;
$custom-light: #e297f5;
$custom-dark: #000000;
JSON
{
  "hex": "#d166f0",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 240
  },
  "hsl": {
    "h": 286.522,
    "s": 82.143,
    "l": 67.059
  },
  "oklch": {
    "l": 0.69111,
    "c": 0.2158,
    "h": 318.1
  },
  "luminance": 0.29349
}

Semantic roles & 50–950 ramp

primary
#D166F0
secondary
#CDEFC3
accent
#DF0737
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160E17
muted
#847E85

Preview Lab

Preview with #D166F0

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

Preview Lab → · Contrast checker → · Palette generator →

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