#9B5AEA#9B5AEA

#9B5AEA is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.0% C 0.209 H 301.2°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9B5AEA
RGBrgb(155, 90, 234)
HSLhsl(267, 77%, 64%)
HSVhsv(267, 62%, 92%)
CMYKcmyk(33.8%, 61.5%, 0%, 8.2%)
CIE-LABlab(52.09, 54.44, -63.11)
CIE-LCHlch(52.09, 83.35, 310.78°)
OKLaboklab(61.04% 0.1084 -0.1792)
OKLCHoklch(61.04% 0.209 301.2)
XYZxyz(32.0215, 20.2212, 80.0420)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5AEA #A9EA5A
analogous
#5A61EA #9B5AEA #E35AEA
triadic
#9B5AEA #EA9B5A #5AEA9B
tetradic
#9B5AEA #EA5A61 #A9EA5A #5AEAE3
square
#9B5AEA #EA5A61 #A9EA5A #5AEAE3
split-complementary
#9B5AEA #EAE35A #61EA5A
monochromatic
#5D17B3 #7A24E3 #9B5AEA #BC90F1 #DDC7F8

Accessibility & contrast

On white

4.16
#9B5AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#9B5AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5AEA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5AEA#FFFFFF#000000##000000
##9B5AEA1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEF
Deuteranopia (green-blind)
#287BE7
Tritanopia (blue-blind)
#8B799A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9b5aea;
/* rgb */ color: rgb(155, 90, 234);
/* oklch */ color: oklch(61.0% 0.209 301.2);
Tailwind
colors: {
  custom: {
    50: '#bd8cf1',
    500: '#9b5aea',
    950: '#000000',
  },
}
SCSS
$custom: #9b5aea;
$custom-light: #bd8cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5aea",
  "rgb": {
    "r": 155,
    "g": 90,
    "b": 234
  },
  "hsl": {
    "h": 267.083,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.6104,
    "c": 0.20942,
    "h": 301.2
  },
  "luminance": 0.20221
}

Semantic roles & 50–950 ramp

primary
#9B5AEA
secondary
#D2E9B6
accent
#DA0C7D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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