#9B5BEC#9B5BEC

#9B5BEC is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.3% C 0.210 H 300.6°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9B5BEC
RGBrgb(155, 91, 236)
HSLhsl(266, 79%, 64%)
HSVhsv(266, 61%, 93%)
CMYKcmyk(34.3%, 61.4%, 0%, 7.5%)
CIE-LABlab(52.41, 54.41, -63.72)
CIE-LCHlch(52.41, 83.79, 310.49°)
OKLaboklab(61.31% 0.1072 -0.1809)
OKLCHoklch(61.31% 0.21 300.6)
XYZxyz(32.3953, 20.5067, 81.5921)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5BEC #ACEC5B
analogous
#5B64EC #9B5BEC #E45BEC
triadic
#9B5BEC #EC9B5B #5BEC9B
tetradic
#9B5BEC #EC5B64 #ACEC5B #5BECE4
square
#9B5BEC #EC5B64 #ACEC5B #5BECE4
split-complementary
#9B5BEC #ECE45B #64EC5B
monochromatic
#5D15B7 #7A24E6 #9B5BEC #BC92F2 #DEC9F9

Accessibility & contrast

On white

4.12
#9B5BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#9B5BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5BEC
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5BEC#FFFFFF#000000##000000
##9B5BEC1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#267CE9
Tritanopia (blue-blind)
#8A7A9B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5bec;
/* rgb */ color: rgb(155, 91, 236);
/* oklch */ color: oklch(61.3% 0.210 300.6);
Tailwind
colors: {
  custom: {
    50: '#bd8cf3',
    500: '#9b5bec',
    950: '#000000',
  },
}
SCSS
$custom: #9b5bec;
$custom-light: #bd8cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5bec",
  "rgb": {
    "r": 155,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 266.483,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61312,
    "c": 0.21032,
    "h": 300.6
  },
  "luminance": 0.20507
}

Semantic roles & 50–950 ramp

primary
#9B5BEC
secondary
#D4EBB8
accent
#DC0A7F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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