#9B5BEB#9B5BEB

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

Color values

HEX#9B5BEB
RGBrgb(155, 91, 235)
HSLhsl(267, 78%, 64%)
HSVhsv(267, 61%, 92%)
CMYKcmyk(34%, 61.3%, 0%, 7.8%)
CIE-LABlab(52.34, 54.17, -63.26)
CIE-LCHlch(52.34, 83.29, 310.57°)
OKLaboklab(61.25% 0.1072 -0.1796)
OKLCHoklch(61.25% 0.209 300.8)
XYZxyz(32.2505, 20.4487, 80.8291)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5BEB #ABEB5B
analogous
#5B63EB #9B5BEB #E35BEB
triadic
#9B5BEB #EB9B5B #5BEB9B
tetradic
#9B5BEB #EB5B63 #ABEB5B #5BEBE3
square
#9B5BEB #EB5B63 #ABEB5B #5BEBE3
split-complementary
#9B5BEB #EBE35B #63EB5B
monochromatic
#5D16B5 #7A24E4 #9B5BEB #BC92F2 #DEC8F8

Accessibility & contrast

On white

4.13
#9B5BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#9B5BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5BEB
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5BEB#FFFFFF#000000##000000
##9B5BEB1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#287CE8
Tritanopia (blue-blind)
#8A7A9B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5beb;
/* rgb */ color: rgb(155, 91, 235);
/* oklch */ color: oklch(61.2% 0.209 300.8);
Tailwind
colors: {
  custom: {
    50: '#bd8cf2',
    500: '#9b5beb',
    950: '#000000',
  },
}
SCSS
$custom: #9b5beb;
$custom-light: #bd8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5beb",
  "rgb": {
    "r": 155,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 266.667,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61245,
    "c": 0.20918,
    "h": 300.8
  },
  "luminance": 0.20449
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9B5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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