#9B5CEA#9B5CEA

#9B5CEA is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.3% C 0.207 H 300.9°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9B5CEA
RGBrgb(155, 92, 234)
HSLhsl(267, 77%, 64%)
HSVhsv(267, 61%, 92%)
CMYKcmyk(33.8%, 60.7%, 0%, 8.2%)
CIE-LABlab(52.47, 53.41, -62.50)
CIE-LCHlch(52.47, 82.21, 310.52°)
OKLaboklab(61.32% 0.1062 -0.1773)
OKLCHoklch(61.32% 0.207 300.9)
XYZxyz(32.1924, 20.5632, 80.0990)
Luminance0.2056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CEA #ABEA5C
analogous
#5C64EA #9B5CEA #E25CEA
triadic
#9B5CEA #EA9B5C #5CEA9B
tetradic
#9B5CEA #EA5C64 #ABEA5C #5CEAE2
square
#9B5CEA #EA5C64 #ABEA5C #5CEAE2
split-complementary
#9B5CEA #EAE25C #64EA5C
monochromatic
#5D17B4 #7A26E3 #9B5CEA #BC92F1 #DEC8F8

Accessibility & contrast

On white

4.11
#9B5CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#9B5CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CEA
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CEA#FFFFFF#000000##000000
##9B5CEA1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DEF
Deuteranopia (green-blind)
#2C7CE7
Tritanopia (blue-blind)
#8B7A9B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5cea;
/* rgb */ color: rgb(155, 92, 234);
/* oklch */ color: oklch(61.3% 0.207 300.9);
Tailwind
colors: {
  custom: {
    50: '#bd8df1',
    500: '#9b5cea',
    950: '#000000',
  },
}
SCSS
$custom: #9b5cea;
$custom-light: #bd8df1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5cea",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 266.62,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61317,
    "c": 0.20669,
    "h": 300.9
  },
  "luminance": 0.20563
}

Semantic roles & 50–950 ramp

primary
#9B5CEA
secondary
#D4EAB8
accent
#D90C7E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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