#9B5CEB#9B5CEB

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

Color values

HEX#9B5CEB
RGBrgb(155, 92, 235)
HSLhsl(266, 78%, 64%)
HSVhsv(266, 61%, 92%)
CMYKcmyk(34%, 60.9%, 0%, 7.8%)
CIE-LABlab(52.53, 53.65, -62.95)
CIE-LCHlch(52.53, 82.72, 310.44°)
OKLaboklab(61.38% 0.1061 -0.1787)
OKLCHoklch(61.38% 0.208 300.7)
XYZxyz(32.3365, 20.6208, 80.8578)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CEB #ACEB5C
analogous
#5C65EB #9B5CEB #E35CEB
triadic
#9B5CEB #EB9B5C #5CEB9B
tetradic
#9B5CEB #EB5C65 #ACEB5C #5CEBE3
square
#9B5CEB #EB5C65 #ACEB5C #5CEBE3
split-complementary
#9B5CEB #EBE35C #65EB5C
monochromatic
#5D16B6 #7A25E4 #9B5CEB #BC93F2 #DEC9F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B5CEB#FFFFFF#000000##000000
##9B5CEB1.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)
#007DF0
Deuteranopia (green-blind)
#2A7CE8
Tritanopia (blue-blind)
#8A7B9B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5ceb;
/* rgb */ color: rgb(155, 92, 235);
/* oklch */ color: oklch(61.4% 0.208 300.7);
Tailwind
colors: {
  custom: {
    50: '#bd8df2',
    500: '#9b5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #9b5ceb;
$custom-light: #bd8df2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5ceb",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 266.434,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61384,
    "c": 0.20782,
    "h": 300.7
  },
  "luminance": 0.20621
}

Semantic roles & 50–950 ramp

primary
#9B5CEB
secondary
#D4EAB8
accent
#DA0B7F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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