#9B5BEA#9B5BEA

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

Color values

HEX#9B5BEA
RGBrgb(155, 91, 234)
HSLhsl(267, 77%, 64%)
HSVhsv(267, 61%, 92%)
CMYKcmyk(33.8%, 61.1%, 0%, 8.2%)
CIE-LABlab(52.28, 53.93, -62.81)
CIE-LCHlch(52.28, 82.78, 310.65°)
OKLaboklab(61.18% 0.1073 -0.1783)
OKLCHoklch(61.18% 0.208 301)
XYZxyz(32.1064, 20.3911, 80.0703)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5BEA #AAEA5B
analogous
#5B62EA #9B5BEA #E25BEA
triadic
#9B5BEA #EA9B5B #5BEA9B
tetradic
#9B5BEA #EA5B62 #AAEA5B #5BEAE2
square
#9B5BEA #EA5B62 #AAEA5B #5BEAE2
split-complementary
#9B5BEA #EAE25B #62EA5B
monochromatic
#5D17B4 #7A25E3 #9B5BEA #BC91F1 #DDC8F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B5BEA#FFFFFF#000000##000000
##9B5BEA1.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)
#007CEF
Deuteranopia (green-blind)
#2A7CE7
Tritanopia (blue-blind)
#8B7A9A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5bea;
/* rgb */ color: rgb(155, 91, 234);
/* oklch */ color: oklch(61.2% 0.208 301.0);
Tailwind
colors: {
  custom: {
    50: '#bd8cf1',
    500: '#9b5bea',
    950: '#000000',
  },
}
SCSS
$custom: #9b5bea;
$custom-light: #bd8cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5bea",
  "rgb": {
    "r": 155,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 266.853,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61178,
    "c": 0.20806,
    "h": 301
  },
  "luminance": 0.20391
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9B5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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