#9866BC#9866BC

#9866BC is a mid, vivid violet. Relative luminance 0.198; OKLCH L 59.8% C 0.136 H 309.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9866BC
RGBrgb(152, 102, 188)
HSLhsl(275, 39%, 57%)
HSVhsv(275, 46%, 74%)
CMYKcmyk(19.1%, 45.7%, 0%, 26.3%)
CIE-LABlab(51.62, 36.30, -37.69)
CIE-LCHlch(51.62, 52.33, 313.92°)
OKLaboklab(59.78% 0.087 -0.1049)
OKLCHoklch(59.78% 0.136 309.7)
XYZxyz(26.7757, 19.8094, 49.9803)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866BC #8ABC66
analogous
#6D66BC #9866BC #BC66B5
triadic
#9866BC #BC9866 #66BC98
tetradic
#9866BC #BC6D66 #8ABC66 #66B5BC
square
#9866BC #BC6D66 #8ABC66 #66B5BC
split-complementary
#9866BC #B5BC66 #66BC6D
monochromatic
#593375 #7A469F #9866BC #B591CF #D1BBE1

Accessibility & contrast

On white

4.23
#9866BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#9866BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866BC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866BC#FFFFFF#000000##000000
##9866BC1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5279BF
Deuteranopia (green-blind)
#5F7CBA
Tritanopia (blue-blind)
#947488
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9866bc;
/* rgb */ color: rgb(152, 102, 188);
/* oklch */ color: oklch(59.8% 0.136 309.7);
Tailwind
colors: {
  custom: {
    50: '#b893d0',
    500: '#9866bc',
    950: '#000000',
  },
}
SCSS
$custom: #9866bc;
$custom-light: #b893d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9866bc",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 188
  },
  "hsl": {
    "h": 274.884,
    "s": 39.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5978,
    "c": 0.13631,
    "h": 309.7
  },
  "luminance": 0.19809
}

Semantic roles & 50–950 ramp

primary
#9866BC
secondary
#BCD0AD
accent
#CF598A
background
#FBF9FC
surface
#F6F1F9
border
#D0CBD2
text
#110D14
muted
#807E82

Preview Lab

Preview with #9866BC

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

Preview Lab → · Contrast checker → · Palette generator →

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