#9866EA#9866EA

#9866EA is a light, vivid violet. Relative luminance 0.221; OKLCH L 62.5% C 0.192 H 298.1°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9866EA
RGBrgb(152, 102, 234)
HSLhsl(263, 76%, 66%)
HSVhsv(263, 56%, 92%)
CMYKcmyk(35%, 56.4%, 0%, 8.2%)
CIE-LABlab(54.15, 47.43, -59.80)
CIE-LCHlch(54.15, 76.33, 308.42°)
OKLaboklab(62.48% 0.0905 -0.1695)
OKLCHoklch(62.48% 0.192 298.1)
XYZxyz(32.5479, 22.1183, 80.3804)
Luminance0.2212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866EA #B8EA66
analogous
#6676EA #9866EA #DA66EA
triadic
#9866EA #EA9866 #66EA98
tetradic
#9866EA #EA6676 #B8EA66 #66EADA
square
#9866EA #EA6676 #B8EA66 #66EADA
split-complementary
#9866EA #EADA66 #76EA66
monochromatic
#571ABC #7430E3 #9866EA #BC9CF1 #E0D2F9

Accessibility & contrast

On white

3.87
#9866EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#9866EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866EA
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866EA#FFFFFF#000000##000000
##9866EA1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2682EE
Deuteranopia (green-blind)
#3A80E7
Tritanopia (blue-blind)
#86819E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9866ea;
/* rgb */ color: rgb(152, 102, 234);
/* oklch */ color: oklch(62.5% 0.192 298.1);
Tailwind
colors: {
  custom: {
    50: '#bb93f1',
    500: '#9866ea',
    950: '#000000',
  },
}
SCSS
$custom: #9866ea;
$custom-light: #bb93f1;
$custom-dark: #000000;
JSON
{
  "hex": "#9866ea",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 234
  },
  "hsl": {
    "h": 262.727,
    "s": 75.862,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62475,
    "c": 0.19221,
    "h": 298.1
  },
  "luminance": 0.22119
}

Semantic roles & 50–950 ramp

primary
#9866EA
secondary
#DBECC0
accent
#D80D8B
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9866EA

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

Preview Lab → · Contrast checker → · Palette generator →

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