#9E64CB#9E64CB

#9E64CB is a mid, vivid violet. Relative luminance 0.207; OKLCH L 60.9% C 0.160 H 308.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9E64CB
RGBrgb(158, 100, 203)
HSLhsl(274, 50%, 59%)
HSVhsv(274, 51%, 80%)
CMYKcmyk(22.2%, 50.7%, 0%, 20.4%)
CIE-LABlab(52.61, 42.53, -44.69)
CIE-LCHlch(52.61, 61.69, 313.58°)
OKLaboklab(60.92% 0.0991 -0.1251)
OKLCHoklch(60.92% 0.16 308.4)
XYZxyz(29.4351, 20.6956, 58.9323)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E64CB #91CB64
analogous
#6B64CB #9E64CB #CB64C5
triadic
#9E64CB #CB9E64 #64CB9E
tetradic
#9E64CB #CB6B64 #91CB64 #64C5CB
square
#9E64CB #CB6B64 #91CB64 #64C5CB
split-complementary
#9E64CB #C5CB64 #64CB6B
monochromatic
#602D87 #803DB5 #9E64CB #BB92DA #D7C0EA

Accessibility & contrast

On white

4.09
#9E64CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#9E64CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E64CB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E64CB#FFFFFF#000000##000000
##9E64CB1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#477BCF
Deuteranopia (green-blind)
#597EC8
Tritanopia (blue-blind)
#98768E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9e64cb;
/* rgb */ color: rgb(158, 100, 203);
/* oklch */ color: oklch(60.9% 0.160 308.4);
Tailwind
colors: {
  custom: {
    50: '#bd92db',
    500: '#9e64cb',
    950: '#000000',
  },
}
SCSS
$custom: #9e64cb;
$custom-light: #bd92db;
$custom-dark: #000000;
JSON
{
  "hex": "#9e64cb",
  "rgb": {
    "r": 158,
    "g": 100,
    "b": 203
  },
  "hsl": {
    "h": 273.786,
    "s": 49.758,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60919,
    "c": 0.15962,
    "h": 308.4
  },
  "luminance": 0.20695
}

Semantic roles & 50–950 ramp

primary
#9E64CB
secondary
#C3D9B1
accent
#D94F8B
background
#FBF9FD
surface
#F7F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9E64CB

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

Preview Lab → · Contrast checker → · Palette generator →

#9E64CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva