#D866EC#D866EC

#D866EC is a light, highly saturated purple. Relative luminance 0.302; OKLCH L 69.7% C 0.215 H 321.5°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#D866EC
RGBrgb(216, 102, 236)
HSLhsl(291, 78%, 66%)
HSVhsv(291, 57%, 93%)
CMYKcmyk(8.5%, 56.8%, 0%, 7.5%)
CIE-LABlab(61.79, 63.44, -48.30)
CIE-LCHlch(61.79, 79.73, 322.72°)
OKLaboklab(69.75% 0.1684 -0.1342)
OKLCHoklch(69.75% 0.215 321.5)
XYZxyz(48.2089, 30.1601, 82.6227)
Luminance0.3016 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D866EC #7AEC66
analogous
#9566EC #D866EC #EC66BD
triadic
#D866EC #ECD866 #66ECD8
tetradic
#D866EC #EC9566 #7AEC66 #66BDEC
square
#D866EC #EC9566 #7AEC66 #66BDEC
split-complementary
#D866EC #BDEC66 #66EC95
monochromatic
#A718C0 #CA30E5 #D866EC #E69CF3 #F4D3FA

Accessibility & contrast

On white

2.99
#D866EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#D866EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D866EC
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D866EC#FFFFFF#000000##000000
##D866EC1.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8DF0
Deuteranopia (green-blind)
#749AE8
Tritanopia (blue-blind)
#DA7AA0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #d866ec;
/* rgb */ color: rgb(216, 102, 236);
/* oklch */ color: oklch(69.7% 0.215 321.5);
Tailwind
colors: {
  custom: {
    50: '#e797f2',
    500: '#d866ec',
    950: '#000000',
  },
}
SCSS
$custom: #d866ec;
$custom-light: #e797f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d866ec",
  "rgb": {
    "r": 216,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 291.045,
    "s": 77.907,
    "l": 66.275
  },
  "oklch": {
    "l": 0.69747,
    "c": 0.21529,
    "h": 321.5
  },
  "luminance": 0.30158
}

Semantic roles & 50–950 ramp

primary
#D866EC
secondary
#C8EDC1
accent
#DA0B2A
background
#FEF9FE
surface
#FDF2FD
border
#D5CCD5
text
#160E17
muted
#847E85

Preview Lab

Preview with #D866EC

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

Preview Lab → · Contrast checker → · Palette generator →

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