#9866BB#9866BB

#9866BB is a mid, vivid violet. Relative luminance 0.198; OKLCH L 59.7% C 0.135 H 310.0°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9866BB
RGBrgb(152, 102, 187)
HSLhsl(275, 38%, 57%)
HSVhsv(275, 45%, 73%)
CMYKcmyk(18.7%, 45.5%, 0%, 26.7%)
CIE-LABlab(51.57, 36.07, -37.19)
CIE-LCHlch(51.57, 51.81, 314.13°)
OKLaboklab(59.73% 0.0868 -0.1035)
OKLCHoklch(59.73% 0.135 310)
XYZxyz(26.6683, 19.7664, 49.4145)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866BB #89BB66
analogous
#6E66BB #9866BB #BB66B4
triadic
#9866BB #BB9866 #66BB98
tetradic
#9866BB #BB6E66 #89BB66 #66B4BB
square
#9866BB #BB6E66 #89BB66 #66B4BB
split-complementary
#9866BB #B4BB66 #66BB6E
monochromatic
#593373 #7A469E #9866BB #B590CE #D1BBE1

Accessibility & contrast

On white

4.24
#9866BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#9866BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866BB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866BB#FFFFFF#000000##000000
##9866BB1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5379BE
Deuteranopia (green-blind)
#607CB9
Tritanopia (blue-blind)
#947388
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9866bb;
/* rgb */ color: rgb(152, 102, 187);
/* oklch */ color: oklch(59.7% 0.135 310.0);
Tailwind
colors: {
  custom: {
    50: '#b893d0',
    500: '#9866bb',
    950: '#000000',
  },
}
SCSS
$custom: #9866bb;
$custom-light: #b893d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9866bb",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 187
  },
  "hsl": {
    "h": 275.294,
    "s": 38.462,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59728,
    "c": 0.1351,
    "h": 310
  },
  "luminance": 0.19766
}

Semantic roles & 50–950 ramp

primary
#9866BB
secondary
#BBD0AD
accent
#CE598A
background
#FBF9FC
surface
#F6F1F9
border
#D0CBD2
text
#110D14
muted
#807E82

Preview Lab

Preview with #9866BB

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

Preview Lab → · Contrast checker → · Palette generator →

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