#9866C8#9866C8

#9866C8 is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.4% C 0.151 H 305.9°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9866C8
RGBrgb(152, 102, 200)
HSLhsl(271, 47%, 59%)
HSVhsv(271, 49%, 78%)
CMYKcmyk(24%, 49%, 0%, 21.6%)
CIE-LABlab(52.23, 39.09, -43.63)
CIE-LCHlch(52.23, 58.58, 311.86°)
OKLaboklab(60.43% 0.0886 -0.1222)
OKLCHoklch(60.43% 0.151 305.9)
XYZxyz(28.1234, 20.3485, 57.0785)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866C8 #96C866
analogous
#6766C8 #9866C8 #C866C7
triadic
#9866C8 #C89866 #66C898
tetradic
#9866C8 #C86766 #96C866 #66C7C8
square
#9866C8 #C86766 #96C866 #66C7C8
split-complementary
#9866C8 #C7C866 #66C867
monochromatic
#5B2F84 #7A40B1 #9866C8 #B693D8 #D5C0E8

Accessibility & contrast

On white

4.14
#9866C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#9866C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866C8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866C8#FFFFFF#000000##000000
##9866C81.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7BCB
Deuteranopia (green-blind)
#587DC6
Tritanopia (blue-blind)
#90778E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9866c8;
/* rgb */ color: rgb(152, 102, 200);
/* oklch */ color: oklch(60.4% 0.151 305.9);
Tailwind
colors: {
  custom: {
    50: '#b893d9',
    500: '#9866c8',
    950: '#000000',
  },
}
SCSS
$custom: #9866c8;
$custom-light: #b893d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9866c8",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 200
  },
  "hsl": {
    "h": 270.612,
    "s": 47.115,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60432,
    "c": 0.15092,
    "h": 305.9
  },
  "luminance": 0.20348
}

Semantic roles & 50–950 ramp

primary
#9866C8
secondary
#C5D8B2
accent
#D75193
background
#FBF9FD
surface
#F6F1FA
border
#D0CBD3
text
#120D15
muted
#817E83

Preview Lab

Preview with #9866C8

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

Preview Lab → · Contrast checker → · Palette generator →

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