#9864C8#9864C8

#9864C8 is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.1% C 0.154 H 306.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9864C8
RGBrgb(152, 100, 200)
HSLhsl(271, 48%, 59%)
HSVhsv(271, 50%, 78%)
CMYKcmyk(24%, 50%, 0%, 21.6%)
CIE-LABlab(51.79, 40.20, -44.32)
CIE-LCHlch(51.79, 59.84, 312.21°)
OKLaboklab(60.11% 0.0913 -0.1242)
OKLCHoklch(60.11% 0.154 306.3)
XYZxyz(27.9292, 19.9601, 57.0137)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9864C8 #94C864
analogous
#6664C8 #9864C8 #C864C6
triadic
#9864C8 #C89864 #64C898
tetradic
#9864C8 #C86664 #94C864 #64C6C8
square
#9864C8 #C86664 #94C864 #64C6C8
split-complementary
#9864C8 #C6C864 #64C866
monochromatic
#5A2F83 #7A3FB0 #9864C8 #B691D8 #D4BEE8

Accessibility & contrast

On white

4.21
#9864C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#9864C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9864C8
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9864C8#FFFFFF#000000##000000
##9864C81.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#477ACB
Deuteranopia (green-blind)
#567CC5
Tritanopia (blue-blind)
#91758D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9864c8;
/* rgb */ color: rgb(152, 100, 200);
/* oklch */ color: oklch(60.1% 0.154 306.3);
Tailwind
colors: {
  custom: {
    50: '#b991d9',
    500: '#9864c8',
    950: '#000000',
  },
}
SCSS
$custom: #9864c8;
$custom-light: #b991d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9864c8",
  "rgb": {
    "r": 152,
    "g": 100,
    "b": 200
  },
  "hsl": {
    "h": 271.2,
    "s": 47.619,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60107,
    "c": 0.15417,
    "h": 306.3
  },
  "luminance": 0.1996
}

Semantic roles & 50–950 ramp

primary
#9864C8
secondary
#C3D8B0
accent
#D75191
background
#FBF9FD
surface
#F6F1FA
border
#D0CBD3
text
#120D15
muted
#817E83

Preview Lab

Preview with #9864C8

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

Preview Lab → · Contrast checker → · Palette generator →

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