#9B5BE5#9B5BE5

#9B5BE5 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.8% C 0.202 H 302.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9B5BE5
RGBrgb(155, 91, 229)
HSLhsl(268, 73%, 63%)
HSVhsv(268, 60%, 90%)
CMYKcmyk(32.3%, 60.3%, 0%, 10.2%)
CIE-LABlab(51.96, 52.72, -60.51)
CIE-LCHlch(51.96, 80.25, 311.06°)
OKLaboklab(60.85% 0.1075 -0.1715)
OKLCHoklch(60.85% 0.202 302.1)
XYZxyz(31.3982, 20.1078, 76.3406)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5BE5 #A5E55B
analogous
#5B60E5 #9B5BE5 #E05BE5
triadic
#9B5BE5 #E59B5B #5BE59B
tetradic
#9B5BE5 #E55B60 #A5E55B #5BE5E0
square
#9B5BE5 #E55B60 #A5E55B #5BE5E0
split-complementary
#9B5BE5 #E5E05B #60E55B
monochromatic
#5E1BAB #7B26DD #9B5BE5 #BB90ED #DBC5F6

Accessibility & contrast

On white

4.18
#9B5BE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#9B5BE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5BE5
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5BE5#FFFFFF#000000##000000
##9B5BE51.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BE9
Deuteranopia (green-blind)
#327BE2
Tritanopia (blue-blind)
#8C7898
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9b5be5;
/* rgb */ color: rgb(155, 91, 229);
/* oklch */ color: oklch(60.8% 0.202 302.1);
Tailwind
colors: {
  custom: {
    50: '#bd8cee',
    500: '#9b5be5',
    950: '#000000',
  },
}
SCSS
$custom: #9b5be5;
$custom-light: #bd8cee;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5be5",
  "rgb": {
    "r": 155,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 267.826,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60845,
    "c": 0.20241,
    "h": 302.1
  },
  "luminance": 0.20108
}

Semantic roles & 50–950 ramp

primary
#9B5BE5
secondary
#D0E7B5
accent
#D5117A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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