#9B5FEA#9B5FEA

#9B5FEA is a mid, highly saturated violet. Relative luminance 0.211; OKLCH L 61.7% C 0.203 H 300.5°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9B5FEA
RGBrgb(155, 95, 234)
HSLhsl(266, 77%, 65%)
HSVhsv(266, 59%, 92%)
CMYKcmyk(33.8%, 59.4%, 0%, 8.2%)
CIE-LABlab(53.05, 51.85, -61.56)
CIE-LCHlch(53.05, 80.48, 310.11°)
OKLaboklab(61.74% 0.1027 -0.1746)
OKLCHoklch(61.74% 0.203 300.5)
XYZxyz(32.4575, 21.0933, 80.1874)
Luminance0.2109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5FEA #AEEA5F
analogous
#5F69EA #9B5FEA #E05FEA
triadic
#9B5FEA #EA9B5F #5FEA9B
tetradic
#9B5FEA #EA5F69 #AEEA5F #5FEAE0
square
#9B5FEA #EA5F69 #AEEA5F #5FEAE0
split-complementary
#9B5FEA #EAE05F #69EA5F
monochromatic
#5C18B7 #7929E3 #9B5FEA #BD95F1 #DFCBF8

Accessibility & contrast

On white

4.02
#9B5FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#9B5FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5FEA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5FEA#FFFFFF#000000##000000
##9B5FEA1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#067EEE
Deuteranopia (green-blind)
#327EE7
Tritanopia (blue-blind)
#8A7C9C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9b5fea;
/* rgb */ color: rgb(155, 95, 234);
/* oklch */ color: oklch(61.7% 0.203 300.5);
Tailwind
colors: {
  custom: {
    50: '#bd8ff1',
    500: '#9b5fea',
    950: '#000000',
  },
}
SCSS
$custom: #9b5fea;
$custom-light: #bd8ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5fea",
  "rgb": {
    "r": 155,
    "g": 95,
    "b": 234
  },
  "hsl": {
    "h": 265.899,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61742,
    "c": 0.20255,
    "h": 300.5
  },
  "luminance": 0.21093
}

Semantic roles & 50–950 ramp

primary
#9B5FEA
secondary
#D6EABA
accent
#D90C81
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120D17
muted
#817D85

Preview Lab

Preview with #9B5FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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