#D166FB#D166FB

#D166FB is a light, highly saturated purple. Relative luminance 0.300; OKLCH L 69.7% C 0.226 H 315.3°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#D166FB
RGBrgb(209, 102, 251)
HSLhsl(283, 95%, 69%)
HSVhsv(283, 59%, 98%)
CMYKcmyk(16.7%, 59.4%, 0%, 1.6%)
CIE-LABlab(61.68, 64.62, -56.85)
CIE-LCHlch(61.68, 86.06, 318.66°)
OKLaboklab(69.73% 0.1609 -0.1592)
OKLCHoklch(69.73% 0.226 315.3)
XYZxyz(48.4557, 30.0247, 94.4909)
Luminance0.3002 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166FB #90FB66
analogous
#8766FB #D166FB #FB66DB
triadic
#D166FB #FBD166 #66FBD1
tetradic
#D166FB #FB8766 #90FB66 #66DBFB
square
#D166FB #FB8766 #90FB66 #66DBFB
split-complementary
#D166FB #DBFB66 #66FB87
monochromatic
#A306E1 #BF2AF9 #D166FB #E3A2FD #F5DDFE

Accessibility & contrast

On white

3.00
#D166FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#D166FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D166FB
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166FB#FFFFFF#000000##000000
##D166FB1.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#388FFF
Deuteranopia (green-blind)
#6498F7
Tritanopia (blue-blind)
#CE80A7
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #d166fb;
/* rgb */ color: rgb(209, 102, 251);
/* oklch */ color: oklch(69.7% 0.226 315.3);
Tailwind
colors: {
  custom: {
    50: '#e297fd',
    500: '#d166fb',
    950: '#000000',
  },
}
SCSS
$custom: #d166fb;
$custom-light: #e297fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d166fb",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 251
  },
  "hsl": {
    "h": 283.087,
    "s": 94.904,
    "l": 69.216
  },
  "oklch": {
    "l": 0.69727,
    "c": 0.22637,
    "h": 315.3
  },
  "luminance": 0.30023
}

Semantic roles & 50–950 ramp

primary
#D166FB
secondary
#D5F4C9
accent
#E60041
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160E18
muted
#847E86

Preview Lab

Preview with #D166FB

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

Preview Lab → · Contrast checker → · Palette generator →

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