#9B5BE7#9B5BE7

#9B5BE7 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.0% C 0.205 H 301.7°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9B5BE7
RGBrgb(155, 91, 231)
HSLhsl(267, 74%, 63%)
HSVhsv(267, 61%, 91%)
CMYKcmyk(32.9%, 60.6%, 0%, 9.4%)
CIE-LABlab(52.09, 53.20, -61.43)
CIE-LCHlch(52.09, 81.26, 310.89°)
OKLaboklab(60.98% 0.1074 -0.1742)
OKLCHoklch(60.98% 0.205 301.7)
XYZxyz(31.6791, 20.2201, 77.8197)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5BE7 #A7E75B
analogous
#5B61E7 #9B5BE7 #E15BE7
triadic
#9B5BE7 #E79B5B #5BE79B
tetradic
#9B5BE7 #E75B61 #A7E75B #5BE7E1
square
#9B5BE7 #E75B61 #A7E75B #5BE7E1
split-complementary
#9B5BE7 #E7E15B #61E75B
monochromatic
#5D19AE #7A26DF #9B5BE7 #BC90EF #DCC6F7

Accessibility & contrast

On white

4.16
#9B5BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#9B5BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5BE7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5BE7#FFFFFF#000000##000000
##9B5BE71.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#2F7CE4
Tritanopia (blue-blind)
#8C7999
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9b5be7;
/* rgb */ color: rgb(155, 91, 231);
/* oklch */ color: oklch(61.0% 0.205 301.7);
Tailwind
colors: {
  custom: {
    50: '#bd8cef',
    500: '#9b5be7',
    950: '#000000',
  },
}
SCSS
$custom: #9b5be7;
$custom-light: #bd8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5be7",
  "rgb": {
    "r": 155,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 267.429,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.60978,
    "c": 0.20467,
    "h": 301.7
  },
  "luminance": 0.2022
}

Semantic roles & 50–950 ramp

primary
#9B5BE7
secondary
#D1E8B6
accent
#D70F7B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9B5BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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