#D166FE#D166FE

#D166FE is a light, highly saturated purple. Relative luminance 0.302; OKLCH L 69.9% C 0.229 H 314.6°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#D166FE
RGBrgb(209, 102, 254)
HSLhsl(282, 99%, 70%)
HSVhsv(282, 60%, 100%)
CMYKcmyk(17.7%, 59.8%, 0%, 0.4%)
CIE-LABlab(61.84, 65.22, -58.24)
CIE-LCHlch(61.84, 87.44, 318.24°)
OKLaboklab(69.9% 0.1609 -0.1633)
OKLCHoklch(69.9% 0.229 314.6)
XYZxyz(48.9323, 30.2153, 97.0012)
Luminance0.3021 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166FE #93FE66
analogous
#8566FE #D166FE #FE66DF
triadic
#D166FE #FED166 #66FED1
tetradic
#D166FE #FE8566 #93FE66 #66DFFE
square
#D166FE #FE8566 #93FE66 #66DFFE
split-complementary
#D166FE #DFFE66 #66FE85
monochromatic
#A402E8 #BF29FE #D166FE #E3A3FE #F6E0FF

Accessibility & contrast

On white

2.98
#D166FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#D166FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D166FE
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166FE#FFFFFF#000000##000000
##D166FE1.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#348FFF
Deuteranopia (green-blind)
#6298FA
Tritanopia (blue-blind)
#CD81A9
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #d166fe;
/* rgb */ color: rgb(209, 102, 254);
/* oklch */ color: oklch(69.9% 0.229 314.6);
Tailwind
colors: {
  custom: {
    50: '#e297ff',
    500: '#d166fe',
    950: '#000000',
  },
}
SCSS
$custom: #d166fe;
$custom-light: #e297ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d166fe",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 254
  },
  "hsl": {
    "h": 282.237,
    "s": 98.701,
    "l": 69.804
  },
  "oklch": {
    "l": 0.69899,
    "c": 0.22926,
    "h": 314.6
  },
  "luminance": 0.30214
}

Semantic roles & 50–950 ramp

primary
#D166FE
secondary
#D7F5CA
accent
#E60044
background
#FEF9FF
surface
#FDF2FF
border
#D5CCD7
text
#160E18
muted
#847E86

Preview Lab

Preview with #D166FE

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

Preview Lab → · Contrast checker → · Palette generator →

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