#9864CB#9864CB

#9864CB is a mid, vivid violet. Relative luminance 0.201; OKLCH L 60.3% C 0.158 H 305.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9864CB
RGBrgb(152, 100, 203)
HSLhsl(270, 50%, 59%)
HSVhsv(270, 51%, 80%)
CMYKcmyk(25.1%, 50.7%, 0%, 20.4%)
CIE-LABlab(51.95, 40.91, -45.78)
CIE-LCHlch(51.95, 61.40, 311.79°)
OKLaboklab(60.28% 0.0916 -0.1285)
OKLCHoklch(60.28% 0.158 305.5)
XYZxyz(28.2833, 20.1017, 58.8783)
Luminance0.2010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9864CB #97CB64
analogous
#6564CB #9864CB #CB64CB
triadic
#9864CB #CB9864 #64CB98
tetradic
#9864CB #CB6564 #97CB64 #64CBCB
square
#9864CB #CB6564 #97CB64 #64CBCB
split-complementary
#9864CB #CBCB64 #64CB65
monochromatic
#5B2D87 #793DB5 #9864CB #B692DA #D5C0EA

Accessibility & contrast

On white

4.18
#9864CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#9864CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9864CB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9864CB#FFFFFF#000000##000000
##9864CB1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#457ACF
Deuteranopia (green-blind)
#547CC8
Tritanopia (blue-blind)
#90768E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9864cb;
/* rgb */ color: rgb(152, 100, 203);
/* oklch */ color: oklch(60.3% 0.158 305.5);
Tailwind
colors: {
  custom: {
    50: '#b991db',
    500: '#9864cb',
    950: '#000000',
  },
}
SCSS
$custom: #9864cb;
$custom-light: #b991db;
$custom-dark: #000000;
JSON
{
  "hex": "#9864cb",
  "rgb": {
    "r": 152,
    "g": 100,
    "b": 203
  },
  "hsl": {
    "h": 270.291,
    "s": 49.758,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60278,
    "c": 0.1578,
    "h": 305.5
  },
  "luminance": 0.20102
}

Semantic roles & 50–950 ramp

primary
#9864CB
secondary
#C5D9B1
accent
#D94F93
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9864CB

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

Preview Lab → · Contrast checker → · Palette generator →

#9864CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva