#9866CD#9866CD

#9866CD is a mid, vivid violet. Relative luminance 0.206; OKLCH L 60.7% C 0.157 H 304.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9866CD
RGBrgb(152, 102, 205)
HSLhsl(269, 51%, 60%)
HSVhsv(269, 50%, 80%)
CMYKcmyk(25.9%, 50.2%, 0%, 19.6%)
CIE-LABlab(52.49, 40.28, -46.06)
CIE-LCHlch(52.49, 61.19, 311.17°)
OKLaboklab(60.72% 0.0891 -0.1293)
OKLCHoklch(60.72% 0.157 304.6)
XYZxyz(28.7173, 20.5860, 60.2064)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9866CD #9BCD66
analogous
#6667CD #9866CD #CB66CD
triadic
#9866CD #CD9866 #66CD98
tetradic
#9866CD #CD6667 #9BCD66 #66CDCB
square
#9866CD #CD6667 #9BCD66 #66CDCB
split-complementary
#9866CD #CDCB66 #67CD66
monochromatic
#5B2D8B #793DB9 #9866CD #B794DC #D6C2EB

Accessibility & contrast

On white

4.10
#9866CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#9866CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9866CD
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9866CD#FFFFFF#000000##000000
##9866CD1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#477CD1
Deuteranopia (green-blind)
#557DCA
Tritanopia (blue-blind)
#8F7890
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9866cd;
/* rgb */ color: rgb(152, 102, 205);
/* oklch */ color: oklch(60.7% 0.157 304.6);
Tailwind
colors: {
  custom: {
    50: '#b993dd',
    500: '#9866cd',
    950: '#000000',
  },
}
SCSS
$custom: #9866cd;
$custom-light: #b993dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9866cd",
  "rgb": {
    "r": 152,
    "g": 102,
    "b": 205
  },
  "hsl": {
    "h": 269.126,
    "s": 50.739,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60715,
    "c": 0.15703,
    "h": 304.6
  },
  "luminance": 0.20586
}

Semantic roles & 50–950 ramp

primary
#9866CD
secondary
#C8DBB4
accent
#BE2775
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9866CD

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

Preview Lab → · Contrast checker → · Palette generator →

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