#9B5AEB#9B5AEB

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

Color values

HEX#9B5AEB
RGBrgb(155, 90, 235)
HSLhsl(267, 78%, 64%)
HSVhsv(267, 62%, 92%)
CMYKcmyk(34%, 61.7%, 0%, 7.8%)
CIE-LABlab(52.15, 54.68, -63.57)
CIE-LCHlch(52.15, 83.85, 310.70°)
OKLaboklab(61.11% 0.1084 -0.1805)
OKLCHoklch(61.11% 0.211 301)
XYZxyz(32.1655, 20.2789, 80.8008)
Luminance0.2028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5AEB #AAEB5A
analogous
#5A61EB #9B5AEB #E45AEB
triadic
#9B5AEB #EB9B5A #5AEB9B
tetradic
#9B5AEB #EB5A61 #AAEB5A #5AEBE4
square
#9B5AEB #EB5A61 #AAEB5A #5AEBE4
split-complementary
#9B5AEB #EBE45A #61EB5A
monochromatic
#5D16B5 #7A23E4 #9B5AEB #BC91F2 #DDC7F8

Accessibility & contrast

On white

4.15
#9B5AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#9B5AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5AEB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5AEB#FFFFFF#000000##000000
##9B5AEB1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#267CE8
Tritanopia (blue-blind)
#8A799A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9b5aeb;
/* rgb */ color: rgb(155, 90, 235);
/* oklch */ color: oklch(61.1% 0.211 301.0);
Tailwind
colors: {
  custom: {
    50: '#bd8cf2',
    500: '#9b5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #9b5aeb;
$custom-light: #bd8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5aeb",
  "rgb": {
    "r": 155,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 266.897,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61107,
    "c": 0.21054,
    "h": 301
  },
  "luminance": 0.20279
}

Semantic roles & 50–950 ramp

primary
#9B5AEB
secondary
#D3EAB7
accent
#DB0B7D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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