#9866CC#9866CC

#9866CC is a mid, vivid violet. Relative luminance 0.205; OKLCH L 60.7% C 0.156 H 304.8°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9866CC
RGBrgb(152, 102, 204)
HSLhsl(269, 50%, 60%)
HSVhsv(269, 50%, 80%)
CMYKcmyk(25.5%, 50%, 0%, 20%)
CIE-LABlab(52.44, 40.04, -45.58)
CIE-LCHlch(52.44, 60.67, 311.30°)
OKLaboklab(60.66% 0.089 -0.1279)
OKLCHoklch(60.66% 0.156 304.8)
XYZxyz(28.5970, 20.5379, 59.5727)
Luminance0.2054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866CC #9ACC66
analogous
#6667CC #9866CC #CB66CC
triadic
#9866CC #CC9866 #66CC98
tetradic
#9866CC #CC6667 #9ACC66 #66CCCB
square
#9866CC #CC6667 #9ACC66 #66CCCB
split-complementary
#9866CC #CCCB66 #67CC66
monochromatic
#5B2E8A #793DB8 #9866CC #B794DB #D6C2EB

Accessibility & contrast

On white

4.11
#9866CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#9866CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866CC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866CC#FFFFFF#000000##000000
##9866CC1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#487CD0
Deuteranopia (green-blind)
#567DC9
Tritanopia (blue-blind)
#8F7890
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9866cc;
/* rgb */ color: rgb(152, 102, 204);
/* oklch */ color: oklch(60.7% 0.156 304.8);
Tailwind
colors: {
  custom: {
    50: '#b993dc',
    500: '#9866cc',
    950: '#000000',
  },
}
SCSS
$custom: #9866cc;
$custom-light: #b993dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9866cc",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 204
  },
  "hsl": {
    "h": 269.412,
    "s": 50,
    "l": 60
  },
  "oklch": {
    "l": 0.60658,
    "c": 0.15581,
    "h": 304.8
  },
  "luminance": 0.20538
}

Semantic roles & 50–950 ramp

primary
#9866CC
secondary
#C7DBB3
accent
#DA4E95
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9866CC

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

Preview Lab → · Contrast checker → · Palette generator →

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