#9866FE#9866FE

#9866FE is a light, highly saturated violet. Relative luminance 0.233; OKLCH L 63.8% C 0.216 H 294.7°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#9866FE
RGBrgb(152, 102, 254)
HSLhsl(260, 99%, 70%)
HSVhsv(260, 60%, 100%)
CMYKcmyk(40.2%, 59.8%, 0%, 0.4%)
CIE-LABlab(55.41, 52.55, -68.90)
CIE-LCHlch(55.41, 86.65, 307.33°)
OKLaboklab(63.8% 0.0901 -0.1963)
OKLCHoklch(63.8% 0.216 294.7)
XYZxyz(35.5849, 23.3331, 96.3756)
Luminance0.2333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866FE #CCFE66
analogous
#6680FE #9866FE #E466FE
triadic
#9866FE #FE9866 #66FE98
tetradic
#9866FE #FE6680 #CCFE66 #66FEE4
square
#9866FE #FE6680 #CCFE66 #66FEE4
split-complementary
#9866FE #FEE466 #80FE66
monochromatic
#4D02E8 #6F29FE #9866FE #C1A3FE #EAE0FF

Accessibility & contrast

On white

3.71
#9866FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#9866FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866FE
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866FE#FFFFFF#000000##000000
##9866FE1.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0086FF
Deuteranopia (green-blind)
#0C82FB
Tritanopia (blue-blind)
#7D88A9
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9866fe;
/* rgb */ color: rgb(152, 102, 254);
/* oklch */ color: oklch(63.8% 0.216 294.7);
Tailwind
colors: {
  custom: {
    50: '#bc94ff',
    500: '#9866fe',
    950: '#000000',
  },
}
SCSS
$custom: #9866fe;
$custom-light: #bc94ff;
$custom-dark: #000000;
JSON
{
  "hex": "#9866fe",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 254
  },
  "hsl": {
    "h": 259.737,
    "s": 98.701,
    "l": 69.804
  },
  "oklch": {
    "l": 0.63802,
    "c": 0.21599,
    "h": 294.7
  },
  "luminance": 0.23334
}

Semantic roles & 50–950 ramp

primary
#9866FE
secondary
#E7F5CA
accent
#E6009A
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130D18
muted
#827E86

Preview Lab

Preview with #9866FE

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

Preview Lab → · Contrast checker → · Palette generator →

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