#9864DB#9864DB

#9864DB is a mid, vivid violet. Relative luminance 0.209; OKLCH L 61.2% C 0.177 H 301.5°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9864DB
RGBrgb(152, 100, 219)
HSLhsl(266, 62%, 63%)
HSVhsv(266, 54%, 86%)
CMYKcmyk(30.6%, 54.3%, 0%, 14.1%)
CIE-LABlab(52.84, 44.78, -53.46)
CIE-LCHlch(52.84, 69.74, 309.95°)
OKLaboklab(61.23% 0.0927 -0.1509)
OKLCHoklch(61.23% 0.177 301.5)
XYZxyz(30.2893, 20.9041, 69.4433)
Luminance0.2090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9864DB #A7DB64
analogous
#646CDB #9864DB #D364DB
triadic
#9864DB #DB9864 #64DB98
tetradic
#9864DB #DB646C #A7DB64 #64DBD3
square
#9864DB #DB646C #A7DB64 #64DBD3
split-complementary
#9864DB #DBD364 #6CDB64
monochromatic
#5B25A0 #7732CF #9864DB #B996E7 #DAC7F2

Accessibility & contrast

On white

4.05
#9864DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#9864DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9864DB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9864DB#FFFFFF#000000##000000
##9864DB1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#367DDF
Deuteranopia (green-blind)
#477ED8
Tritanopia (blue-blind)
#8B7B96
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9864db;
/* rgb */ color: rgb(152, 100, 219);
/* oklch */ color: oklch(61.2% 0.177 301.5);
Tailwind
colors: {
  custom: {
    50: '#ba92e7',
    500: '#9864db',
    950: '#000000',
  },
}
SCSS
$custom: #9864db;
$custom-light: #ba92e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9864db",
  "rgb": {
    "r": 152,
    "g": 100,
    "b": 219
  },
  "hsl": {
    "h": 266.218,
    "s": 62.304,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61227,
    "c": 0.1771,
    "h": 301.5
  },
  "luminance": 0.20904
}

Semantic roles & 50–950 ramp

primary
#9864DB
secondary
#D0E3B8
accent
#CA1B7E
background
#FBF9FE
surface
#F7F1FC
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9864DB

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

Preview Lab → · Contrast checker → · Palette generator →

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