#9866F2#9866F2

#9866F2 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.0% C 0.202 H 296.6°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#9866F2
RGBrgb(152, 102, 242)
HSLhsl(261, 84%, 67%)
HSVhsv(261, 58%, 95%)
CMYKcmyk(37.2%, 57.9%, 0%, 5.1%)
CIE-LABlab(54.65, 49.46, -63.48)
CIE-LCHlch(54.65, 80.47, 307.93°)
OKLaboklab(63% 0.0905 -0.1803)
OKLCHoklch(63% 0.202 296.6)
XYZxyz(33.7232, 22.5884, 86.5704)
Luminance0.2259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866F2 #C0F266
analogous
#667AF2 #9866F2 #DE66F2
triadic
#9866F2 #F29866 #66F298
tetradic
#9866F2 #F2667A #C0F266 #66F2DE
square
#9866F2 #F2667A #C0F266 #66F2DE
split-complementary
#9866F2 #F2DE66 #7AF266
monochromatic
#5411CC #722EED #9866F2 #BE9EF7 #E4D7FC

Accessibility & contrast

On white

3.81
#9866F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#9866F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866F2
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866F2#FFFFFF#000000##000000
##9866F21.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1183F7
Deuteranopia (green-blind)
#2E81EF
Tritanopia (blue-blind)
#8384A2
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9866f2;
/* rgb */ color: rgb(152, 102, 242);
/* oklch */ color: oklch(63.0% 0.202 296.6);
Tailwind
colors: {
  custom: {
    50: '#bb93f7',
    500: '#9866f2',
    950: '#000000',
  },
}
SCSS
$custom: #9866f2;
$custom-light: #bb93f7;
$custom-dark: #000000;
JSON
{
  "hex": "#9866f2",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 242
  },
  "hsl": {
    "h": 261.429,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.62996,
    "c": 0.20178,
    "h": 296.6
  },
  "luminance": 0.22589
}

Semantic roles & 50–950 ramp

primary
#9866F2
secondary
#E0F0C4
accent
#E10592
background
#FCF9FF
surface
#F8F1FF
border
#D1CBD7
text
#120D17
muted
#817E85

Preview Lab

Preview with #9866F2

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

Preview Lab → · Contrast checker → · Palette generator →

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