#9864D5#9864D5

#9864D5 is a mid, vivid violet. Relative luminance 0.206; OKLCH L 60.9% C 0.170 H 302.9°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9864D5
RGBrgb(152, 100, 213)
HSLhsl(268, 57%, 61%)
HSVhsv(268, 53%, 84%)
CMYKcmyk(28.6%, 53.1%, 0%, 16.5%)
CIE-LABlab(52.50, 43.31, -50.60)
CIE-LCHlch(52.50, 66.61, 310.56°)
OKLaboklab(60.86% 0.0924 -0.1426)
OKLCHoklch(60.86% 0.17 302.9)
XYZxyz(29.5136, 20.5939, 65.3580)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9864D5 #A1D564
analogous
#6469D5 #9864D5 #D164D5
triadic
#9864D5 #D59864 #64D598
tetradic
#9864D5 #D56469 #A1D564 #64D5D1
square
#9864D5 #D56469 #A1D564 #64D5D1
split-complementary
#9864D5 #D5D164 #69D564
monochromatic
#5B2996 #7836C6 #9864D5 #B894E2 #D8C4EF

Accessibility & contrast

On white

4.10
#9864D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#9864D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9864D5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9864D5#FFFFFF#000000##000000
##9864D51.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)
#3C7CD9
Deuteranopia (green-blind)
#4D7DD2
Tritanopia (blue-blind)
#8D7993
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9864d5;
/* rgb */ color: rgb(152, 100, 213);
/* oklch */ color: oklch(60.9% 0.170 302.9);
Tailwind
colors: {
  custom: {
    50: '#b992e2',
    500: '#9864d5',
    950: '#000000',
  },
}
SCSS
$custom: #9864d5;
$custom-light: #b992e2;
$custom-dark: #000000;
JSON
{
  "hex": "#9864d5",
  "rgb": {
    "r": 152,
    "g": 100,
    "b": 213
  },
  "hsl": {
    "h": 267.611,
    "s": 57.36,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60863,
    "c": 0.16987,
    "h": 302.9
  },
  "luminance": 0.20594
}

Semantic roles & 50–950 ramp

primary
#9864D5
secondary
#CCE0B5
accent
#C52179
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9864D5

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

Preview Lab → · Contrast checker → · Palette generator →

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