#9B5AEC#9B5AEC

#9B5AEC is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.2% C 0.212 H 300.8°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9B5AEC
RGBrgb(155, 90, 236)
HSLhsl(267, 79%, 64%)
HSVhsv(267, 62%, 93%)
CMYKcmyk(34.3%, 61.9%, 0%, 7.5%)
CIE-LABlab(52.22, 54.92, -64.03)
CIE-LCHlch(52.22, 84.35, 310.62°)
OKLaboklab(61.18% 0.1083 -0.1818)
OKLCHoklch(61.18% 0.212 300.8)
XYZxyz(32.3104, 20.3368, 81.5638)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5AEC #ABEC5A
analogous
#5A62EC #9B5AEC #E45AEC
triadic
#9B5AEC #EC9B5A #5AEC9B
tetradic
#9B5AEC #EC5A62 #ABEC5A #5AECE4
square
#9B5AEC #EC5A62 #ABEC5A #5AECE4
split-complementary
#9B5AEC #ECE45A #62EC5A
monochromatic
#5D15B7 #7A23E6 #9B5AEC #BC91F2 #DEC8F9

Accessibility & contrast

On white

4.14
#9B5AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#9B5AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5AEC
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5AEC#FFFFFF#000000##000000
##9B5AEC1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b5aec;
/* rgb */ color: rgb(155, 90, 236);
/* oklch */ color: oklch(61.2% 0.212 300.8);
Tailwind
colors: {
  custom: {
    50: '#bd8cf3',
    500: '#9b5aec',
    950: '#000000',
  },
}
SCSS
$custom: #9b5aec;
$custom-light: #bd8cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5aec",
  "rgb": {
    "r": 155,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 266.712,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61175,
    "c": 0.21166,
    "h": 300.8
  },
  "luminance": 0.20337
}

Semantic roles & 50–950 ramp

primary
#9B5AEC
secondary
#D4EBB7
accent
#DC0A7E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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