#9866F7#9866F7

#9866F7 is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 63.3% C 0.208 H 295.8°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#9866F7
RGBrgb(152, 102, 247)
HSLhsl(261, 90%, 68%)
HSVhsv(261, 59%, 97%)
CMYKcmyk(38.5%, 58.7%, 0%, 3.1%)
CIE-LABlab(54.96, 50.74, -65.75)
CIE-LCHlch(54.96, 83.06, 307.66°)
OKLaboklab(63.33% 0.0904 -0.187)
OKLCHoklch(63.33% 0.208 295.8)
XYZxyz(34.4844, 22.8929, 90.5796)
Luminance0.2289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866F7 #C5F766
analogous
#667CF7 #9866F7 #E166F7
triadic
#9866F7 #F79866 #66F798
tetradic
#9866F7 #F7667C #C5F766 #66F7E1
square
#9866F7 #F7667C #C5F766 #66F7E1
split-complementary
#9866F7 #F7E166 #7CF766
monochromatic
#520BD7 #712CF4 #9866F7 #BFA0FA #E6DAFD

Accessibility & contrast

On white

3.76
#9866F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#9866F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866F7
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866F7#FFFFFF#000000##000000
##9866F71.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FC
Deuteranopia (green-blind)
#2482F4
Tritanopia (blue-blind)
#8185A5
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9866f7;
/* rgb */ color: rgb(152, 102, 247);
/* oklch */ color: oklch(63.3% 0.208 295.8);
Tailwind
colors: {
  custom: {
    50: '#bc93fb',
    500: '#9866f7',
    950: '#000000',
  },
}
SCSS
$custom: #9866f7;
$custom-light: #bc93fb;
$custom-dark: #000000;
JSON
{
  "hex": "#9866f7",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 247
  },
  "hsl": {
    "h": 260.69,
    "s": 90.062,
    "l": 68.431
  },
  "oklch": {
    "l": 0.63328,
    "c": 0.20772,
    "h": 295.8
  },
  "luminance": 0.22894
}

Semantic roles & 50–950 ramp

primary
#9866F7
secondary
#E3F2C7
accent
#E60096
background
#FCF9FF
surface
#F8F1FF
border
#D1CBD7
text
#120D17
muted
#817E85

Preview Lab

Preview with #9866F7

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

Preview Lab → · Contrast checker → · Palette generator →

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