#9B5BED#9B5BED

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

Color values

HEX#9B5BED
RGBrgb(155, 91, 237)
HSLhsl(266, 80%, 64%)
HSVhsv(266, 62%, 93%)
CMYKcmyk(34.6%, 61.6%, 0%, 7.1%)
CIE-LABlab(52.47, 54.66, -64.18)
CIE-LCHlch(52.47, 84.30, 310.42°)
OKLaboklab(61.38% 0.1071 -0.1823)
OKLCHoklch(61.38% 0.211 300.4)
XYZxyz(32.5410, 20.5649, 82.3594)
Luminance0.2056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5BED #ADED5B
analogous
#5B64ED #9B5BED #E45BED
triadic
#9B5BED #ED9B5B #5BED9B
tetradic
#9B5BED #ED5B64 #ADED5B #5BEDE4
square
#9B5BED #ED5B64 #ADED5B #5BEDE4
split-complementary
#9B5BED #EDE45B #64ED5B
monochromatic
#5D14B9 #7924E7 #9B5BED #BD92F3 #DEC9F9

Accessibility & contrast

On white

4.11
#9B5BED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#9B5BED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5BED
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5BED#FFFFFF#000000##000000
##9B5BED1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF2
Deuteranopia (green-blind)
#247CEA
Tritanopia (blue-blind)
#897B9C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5bed;
/* rgb */ color: rgb(155, 91, 237);
/* oklch */ color: oklch(61.4% 0.211 300.4);
Tailwind
colors: {
  custom: {
    50: '#bd8cf4',
    500: '#9b5bed',
    950: '#000000',
  },
}
SCSS
$custom: #9b5bed;
$custom-light: #bd8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5bed",
  "rgb": {
    "r": 155,
    "g": 91,
    "b": 237
  },
  "hsl": {
    "h": 266.301,
    "s": 80.22,
    "l": 64.314
  },
  "oklch": {
    "l": 0.6138,
    "c": 0.21144,
    "h": 300.4
  },
  "luminance": 0.20565
}

Semantic roles & 50–950 ramp

primary
#9B5BED
secondary
#D5EBB9
accent
#DD0980
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5BED

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

Preview Lab → · Contrast checker → · Palette generator →

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