#9866EC#9866EC

#9866EC is a light, vivid violet. Relative luminance 0.222; OKLCH L 62.6% C 0.195 H 297.7°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9866EC
RGBrgb(152, 102, 236)
HSLhsl(262, 78%, 66%)
HSVhsv(262, 57%, 93%)
CMYKcmyk(35.6%, 56.8%, 0%, 7.5%)
CIE-LABlab(54.27, 47.94, -60.73)
CIE-LCHlch(54.27, 77.37, 308.29°)
OKLaboklab(62.6% 0.0905 -0.1723)
OKLCHoklch(62.6% 0.195 297.7)
XYZxyz(32.8368, 22.2338, 81.9022)
Luminance0.2223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866EC #BAEC66
analogous
#6677EC #9866EC #DB66EC
triadic
#9866EC #EC9866 #66EC98
tetradic
#9866EC #EC6677 #BAEC66 #66ECDB
square
#9866EC #EC6677 #BAEC66 #66ECDB
split-complementary
#9866EC #ECDB66 #77EC66
monochromatic
#5618C0 #7330E5 #9866EC #BD9CF3 #E1D3FA

Accessibility & contrast

On white

3.86
#9866EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#9866EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866EC
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866EC#FFFFFF#000000##000000
##9866EC1.003.865.455.45
#FFFFFF3.861.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2282F0
Deuteranopia (green-blind)
#3780E9
Tritanopia (blue-blind)
#85829F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9866ec;
/* rgb */ color: rgb(152, 102, 236);
/* oklch */ color: oklch(62.6% 0.195 297.7);
Tailwind
colors: {
  custom: {
    50: '#bb93f3',
    500: '#9866ec',
    950: '#000000',
  },
}
SCSS
$custom: #9866ec;
$custom-light: #bb93f3;
$custom-dark: #000000;
JSON
{
  "hex": "#9866ec",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 262.388,
    "s": 77.907,
    "l": 66.275
  },
  "oklch": {
    "l": 0.62604,
    "c": 0.1946,
    "h": 297.7
  },
  "luminance": 0.22234
}

Semantic roles & 50–950 ramp

primary
#9866EC
secondary
#DCEDC1
accent
#DA0B8D
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9866EC

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

Preview Lab → · Contrast checker → · Palette generator →

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