#9866D2#9866D2

#9866D2 is a mid, vivid violet. Relative luminance 0.208; OKLCH L 61.0% C 0.163 H 303.3°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9866D2
RGBrgb(152, 102, 210)
HSLhsl(268, 55%, 61%)
HSVhsv(268, 51%, 82%)
CMYKcmyk(27.6%, 51.4%, 0%, 17.6%)
CIE-LABlab(52.76, 41.48, -48.48)
CIE-LCHlch(52.76, 63.81, 310.55°)
OKLaboklab(61% 0.0895 -0.1364)
OKLCHoklch(61% 0.163 303.3)
XYZxyz(29.3305, 20.8313, 63.4359)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866D2 #A0D266
analogous
#666AD2 #9866D2 #CE66D2
triadic
#9866D2 #D29866 #66D298
tetradic
#9866D2 #D2666A #A0D266 #66D2CE
square
#9866D2 #D2666A #A0D266 #66D2CE
split-complementary
#9866D2 #D2CE66 #6AD266
monochromatic
#5B2B93 #7839C2 #9866D2 #B895E0 #D8C5EE

Accessibility & contrast

On white

4.06
#9866D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#9866D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866D2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866D2#FFFFFF#000000##000000
##9866D21.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#437DD6
Deuteranopia (green-blind)
#517ECF
Tritanopia (blue-blind)
#8E7A92
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9866d2;
/* rgb */ color: rgb(152, 102, 210);
/* oklch */ color: oklch(61.0% 0.163 303.3);
Tailwind
colors: {
  custom: {
    50: '#b993e0',
    500: '#9866d2',
    950: '#000000',
  },
}
SCSS
$custom: #9866d2;
$custom-light: #b993e0;
$custom-dark: #000000;
JSON
{
  "hex": "#9866d2",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 210
  },
  "hsl": {
    "h": 267.778,
    "s": 54.545,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61004,
    "c": 0.16313,
    "h": 303.3
  },
  "luminance": 0.20831
}

Semantic roles & 50–950 ramp

primary
#9866D2
secondary
#CBDEB6
accent
#C22379
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9866D2

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

Preview Lab → · Contrast checker → · Palette generator →

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