#9866E6#9866E6

#9866E6 is a light, vivid violet. Relative luminance 0.219; OKLCH L 62.2% C 0.187 H 298.9°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9866E6
RGBrgb(152, 102, 230)
HSLhsl(263, 72%, 65%)
HSVhsv(263, 56%, 90%)
CMYKcmyk(33.9%, 55.7%, 0%, 9.8%)
CIE-LABlab(53.91, 46.42, -57.95)
CIE-LCHlch(53.91, 74.25, 308.70°)
OKLaboklab(62.22% 0.0905 -0.1641)
OKLCHoklch(62.22% 0.187 298.9)
XYZxyz(31.9797, 21.8910, 77.3881)
Luminance0.2189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866E6 #B4E666
analogous
#6674E6 #9866E6 #D866E6
triadic
#9866E6 #E69866 #66E698
tetradic
#9866E6 #E66674 #B4E666 #66E6D8
square
#9866E6 #E66674 #B4E666 #66E6D8
split-complementary
#9866E6 #E6D866 #74E666
monochromatic
#581DB4 #7531DD #9866E6 #BB9BEF #DFCFF7

Accessibility & contrast

On white

3.90
#9866E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#9866E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866E6
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866E6#FFFFFF#000000##000000
##9866E61.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C81EA
Deuteranopia (green-blind)
#3F80E3
Tritanopia (blue-blind)
#87809C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9866e6;
/* rgb */ color: rgb(152, 102, 230);
/* oklch */ color: oklch(62.2% 0.187 298.9);
Tailwind
colors: {
  custom: {
    50: '#ba93ef',
    500: '#9866e6',
    950: '#000000',
  },
}
SCSS
$custom: #9866e6;
$custom-light: #ba93ef;
$custom-dark: #000000;
JSON
{
  "hex": "#9866e6",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 230
  },
  "hsl": {
    "h": 263.438,
    "s": 71.91,
    "l": 65.098
  },
  "oklch": {
    "l": 0.62221,
    "c": 0.18739,
    "h": 298.9
  },
  "luminance": 0.21891
}

Semantic roles & 50–950 ramp

primary
#9866E6
secondary
#D9EABE
accent
#D41288
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9866E6

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

Preview Lab → · Contrast checker → · Palette generator →

#9866E6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva