#9864E4#9864E4

#9864E4 is a mid, vivid violet. Relative luminance 0.214; OKLCH L 61.8% C 0.188 H 299.6°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#9864E4
RGBrgb(152, 100, 228)
HSLhsl(264, 70%, 64%)
HSVhsv(264, 56%, 89%)
CMYKcmyk(33.3%, 56.1%, 0%, 10.6%)
CIE-LABlab(53.37, 47.01, -57.69)
CIE-LCHlch(53.37, 74.41, 309.18°)
OKLaboklab(61.79% 0.0929 -0.1633)
OKLCHoklch(61.79% 0.188 299.6)
XYZxyz(31.5063, 21.3909, 75.8527)
Luminance0.2139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9864E4 #B0E464
analogous
#6470E4 #9864E4 #D864E4
triadic
#9864E4 #E49864 #64E498
tetradic
#9864E4 #E46470 #B0E464 #64E4D8
square
#9864E4 #E46470 #B0E464 #64E4D8
split-complementary
#9864E4 #E4D864 #70E464
monochromatic
#591FAF #7530DB #9864E4 #BB98ED #DDCCF6

Accessibility & contrast

On white

3.98
#9864E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#9864E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9864E4
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9864E4#FFFFFF#000000##000000
##9864E41.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A7FE8
Deuteranopia (green-blind)
#3E7FE1
Tritanopia (blue-blind)
#887E9A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9864e4;
/* rgb */ color: rgb(152, 100, 228);
/* oklch */ color: oklch(61.8% 0.188 299.6);
Tailwind
colors: {
  custom: {
    50: '#ba92ed',
    500: '#9864e4',
    950: '#000000',
  },
}
SCSS
$custom: #9864e4;
$custom-light: #ba92ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9864e4",
  "rgb": {
    "r": 152,
    "g": 100,
    "b": 228
  },
  "hsl": {
    "h": 264.375,
    "s": 70.33,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61788,
    "c": 0.1879,
    "h": 299.6
  },
  "luminance": 0.21391
}

Semantic roles & 50–950 ramp

primary
#9864E4
secondary
#D6E8BC
accent
#D21385
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9864E4

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

Preview Lab → · Contrast checker → · Palette generator →

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