#9C5AEB#9C5AEB

#9C5AEB is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.2% C 0.211 H 301.4°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9C5AEB
RGBrgb(156, 90, 235)
HSLhsl(267, 78%, 64%)
HSVhsv(267, 62%, 92%)
CMYKcmyk(33.6%, 61.7%, 0%, 7.8%)
CIE-LABlab(52.26, 54.90, -63.38)
CIE-LCHlch(52.26, 83.85, 310.89°)
OKLaboklab(61.21% 0.1097 -0.1799)
OKLCHoklch(61.21% 0.211 301.4)
XYZxyz(32.3583, 20.3783, 80.8098)
Luminance0.2038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5AEB #A9EB5A
analogous
#5A60EB #9C5AEB #E45AEB
triadic
#9C5AEB #EB9C5A #5AEB9C
tetradic
#9C5AEB #EB5A60 #A9EB5A #5AEBE4
square
#9C5AEB #EB5A60 #A9EB5A #5AEBE4
split-complementary
#9C5AEB #EBE45A #60EB5A
monochromatic
#5E16B5 #7B23E4 #9C5AEB #BD91F2 #DDC7F8

Accessibility & contrast

On white

4.14
#9C5AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#9C5AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5AEB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5AEB#FFFFFF#000000##000000
##9C5AEB1.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#277CE8
Tritanopia (blue-blind)
#8C799A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9c5aeb;
/* rgb */ color: rgb(156, 90, 235);
/* oklch */ color: oklch(61.2% 0.211 301.4);
Tailwind
colors: {
  custom: {
    50: '#be8cf2',
    500: '#9c5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #9c5aeb;
$custom-light: #be8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5aeb",
  "rgb": {
    "r": 156,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 267.31,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61213,
    "c": 0.21072,
    "h": 301.4
  },
  "luminance": 0.20378
}

Semantic roles & 50–950 ramp

primary
#9C5AEB
secondary
#D3EAB7
accent
#DB0B7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9C5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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