#9866EF#9866EF

#9866EF is a light, vivid violet. Relative luminance 0.224; OKLCH L 62.8% C 0.198 H 297.2°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9866EF
RGBrgb(152, 102, 239)
HSLhsl(262, 81%, 67%)
HSVhsv(262, 57%, 94%)
CMYKcmyk(36.4%, 57.3%, 0%, 6.3%)
CIE-LABlab(54.46, 48.70, -62.11)
CIE-LCHlch(54.46, 78.92, 308.10°)
OKLaboklab(62.8% 0.0905 -0.1763)
OKLCHoklch(62.8% 0.198 297.2)
XYZxyz(33.2763, 22.4096, 84.2169)
Luminance0.2241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866EF #BDEF66
analogous
#6679EF #9866EF #DD66EF
triadic
#9866EF #EF9866 #66EF98
tetradic
#9866EF #EF6679 #BDEF66 #66EFDD
square
#9866EF #EF6679 #BDEF66 #66EFDD
split-complementary
#9866EF #EFDD66 #79EF66
monochromatic
#5515C6 #732FE9 #9866EF #BD9DF5 #E3D5FB

Accessibility & contrast

On white

3.83
#9866EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#9866EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866EF
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866EF#FFFFFF#000000##000000
##9866EF1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B83F3
Deuteranopia (green-blind)
#3381EC
Tritanopia (blue-blind)
#8483A1
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9866ef;
/* rgb */ color: rgb(152, 102, 239);
/* oklch */ color: oklch(62.8% 0.198 297.2);
Tailwind
colors: {
  custom: {
    50: '#bb93f5',
    500: '#9866ef',
    950: '#000000',
  },
}
SCSS
$custom: #9866ef;
$custom-light: #bb93f5;
$custom-dark: #000000;
JSON
{
  "hex": "#9866ef",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 239
  },
  "hsl": {
    "h": 261.898,
    "s": 81.065,
    "l": 66.863
  },
  "oklch": {
    "l": 0.62799,
    "c": 0.19819,
    "h": 297.2
  },
  "luminance": 0.2241
}

Semantic roles & 50–950 ramp

primary
#9866EF
secondary
#DEEEC2
accent
#DD0890
background
#FBF9FF
surface
#F7F1FE
border
#D0CBD6
text
#120D17
muted
#817E85

Preview Lab

Preview with #9866EF

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

Preview Lab → · Contrast checker → · Palette generator →

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