#9866ED#9866ED

#9866ED is a light, vivid violet. Relative luminance 0.223; OKLCH L 62.7% C 0.196 H 297.5°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9866ED
RGBrgb(152, 102, 237)
HSLhsl(262, 79%, 66%)
HSVhsv(262, 57%, 93%)
CMYKcmyk(35.9%, 57%, 0%, 7.1%)
CIE-LABlab(54.34, 48.19, -61.19)
CIE-LCHlch(54.34, 77.89, 308.22°)
OKLaboklab(62.67% 0.0905 -0.1736)
OKLCHoklch(62.67% 0.196 297.5)
XYZxyz(32.9825, 22.2921, 82.6695)
Luminance0.2229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866ED #BBED66
analogous
#6678ED #9866ED #DB66ED
triadic
#9866ED #ED9866 #66ED98
tetradic
#9866ED #ED6678 #BBED66 #66EDDB
square
#9866ED #ED6678 #BBED66 #66EDDB
split-complementary
#9866ED #EDDB66 #78ED66
monochromatic
#5617C2 #732FE7 #9866ED #BD9DF3 #E2D4FA

Accessibility & contrast

On white

3.85
#9866ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#9866ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866ED
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866ED#FFFFFF#000000##000000
##9866ED1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2082F1
Deuteranopia (green-blind)
#3680EA
Tritanopia (blue-blind)
#8482A0
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9866ed;
/* rgb */ color: rgb(152, 102, 237);
/* oklch */ color: oklch(62.7% 0.196 297.5);
Tailwind
colors: {
  custom: {
    50: '#bb93f4',
    500: '#9866ed',
    950: '#000000',
  },
}
SCSS
$custom: #9866ed;
$custom-light: #bb93f4;
$custom-dark: #000000;
JSON
{
  "hex": "#9866ed",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 237
  },
  "hsl": {
    "h": 262.222,
    "s": 78.947,
    "l": 66.471
  },
  "oklch": {
    "l": 0.62669,
    "c": 0.19581,
    "h": 297.5
  },
  "luminance": 0.22293
}

Semantic roles & 50–950 ramp

primary
#9866ED
secondary
#DDEDC2
accent
#DB0A8E
background
#FBF9FF
surface
#F7F1FE
border
#D0CBD6
text
#120D17
muted
#817E85

Preview Lab

Preview with #9866ED

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

Preview Lab → · Contrast checker → · Palette generator →

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