#9B5BEE#9B5BEE

#9B5BEE is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.4% C 0.213 H 300.2°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9B5BEE
RGBrgb(155, 91, 238)
HSLhsl(266, 81%, 65%)
HSVhsv(266, 62%, 93%)
CMYKcmyk(34.9%, 61.8%, 0%, 6.7%)
CIE-LABlab(52.53, 54.90, -64.63)
CIE-LCHlch(52.53, 84.80, 310.35°)
OKLaboklab(61.45% 0.1071 -0.1836)
OKLCHoklch(61.45% 0.213 300.2)
XYZxyz(32.6875, 20.6235, 83.1310)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5BEE #AEEE5B
analogous
#5B65EE #9B5BEE #E45BEE
triadic
#9B5BEE #EE9B5B #5BEE9B
tetradic
#9B5BEE #EE5B65 #AEEE5B #5BEEE4
square
#9B5BEE #EE5B65 #AEEE5B #5BEEE4
split-complementary
#9B5BEE #EEE45B #65EE5B
monochromatic
#5C13BB #7924E8 #9B5BEE #BD92F4 #DFCAF9

Accessibility & contrast

On white

4.10
#9B5BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#9B5BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5BEE
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5BEE#FFFFFF#000000##000000
##9B5BEE1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF3
Deuteranopia (green-blind)
#217CEB
Tritanopia (blue-blind)
#897B9C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5bee;
/* rgb */ color: rgb(155, 91, 238);
/* oklch */ color: oklch(61.4% 0.213 300.2);
Tailwind
colors: {
  custom: {
    50: '#be8cf4',
    500: '#9b5bee',
    950: '#000000',
  },
}
SCSS
$custom: #9b5bee;
$custom-light: #be8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5bee",
  "rgb": {
    "r": 155,
    "g": 91,
    "b": 238
  },
  "hsl": {
    "h": 266.122,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61448,
    "c": 0.21257,
    "h": 300.2
  },
  "luminance": 0.20624
}

Semantic roles & 50–950 ramp

primary
#9B5BEE
secondary
#D6ECB9
accent
#DE0881
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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