#9864D2#9864D2

#9864D2 is a mid, vivid violet. Relative luminance 0.204; OKLCH L 60.7% C 0.166 H 303.7°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9864D2
RGBrgb(152, 100, 210)
HSLhsl(268, 55%, 61%)
HSVhsv(268, 52%, 82%)
CMYKcmyk(27.6%, 52.4%, 0%, 17.6%)
CIE-LABlab(52.33, 42.59, -49.17)
CIE-LCHlch(52.33, 65.05, 310.90°)
OKLaboklab(60.69% 0.0922 -0.1384)
OKLCHoklch(60.69% 0.166 303.7)
XYZxyz(29.1364, 20.4430, 63.3712)
Luminance0.2044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9864D2 #9ED264
analogous
#6467D2 #9864D2 #CF64D2
triadic
#9864D2 #D29864 #64D298
tetradic
#9864D2 #D26467 #9ED264 #64D2CF
square
#9864D2 #D26467 #9ED264 #64D2CF
split-complementary
#9864D2 #D2CF64 #67D264
monochromatic
#5B2A91 #7938C1 #9864D2 #B893E0 #D7C3EE

Accessibility & contrast

On white

4.13
#9864D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#9864D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9864D2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9864D2#FFFFFF#000000##000000
##9864D21.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7CD6
Deuteranopia (green-blind)
#4F7DCF
Tritanopia (blue-blind)
#8E7892
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9864d2;
/* rgb */ color: rgb(152, 100, 210);
/* oklch */ color: oklch(60.7% 0.166 303.7);
Tailwind
colors: {
  custom: {
    50: '#b992e0',
    500: '#9864d2',
    950: '#000000',
  },
}
SCSS
$custom: #9864d2;
$custom-light: #b992e0;
$custom-dark: #000000;
JSON
{
  "hex": "#9864d2",
  "rgb": {
    "r": 152,
    "g": 100,
    "b": 210
  },
  "hsl": {
    "h": 268.364,
    "s": 55,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60685,
    "c": 0.16625,
    "h": 303.7
  },
  "luminance": 0.20443
}

Semantic roles & 50–950 ramp

primary
#9864D2
secondary
#CADEB4
accent
#C32377
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9864D2

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

Preview Lab → · Contrast checker → · Palette generator →

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