#9B5AEE#9B5AEE

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

Color values

HEX#9B5AEE
RGBrgb(155, 90, 238)
HSLhsl(266, 81%, 64%)
HSVhsv(266, 62%, 93%)
CMYKcmyk(34.9%, 62.2%, 0%, 6.7%)
CIE-LABlab(52.35, 55.41, -64.94)
CIE-LCHlch(52.35, 85.36, 310.47°)
OKLaboklab(61.31% 0.1082 -0.1845)
OKLCHoklch(61.31% 0.214 300.4)
XYZxyz(32.6026, 20.4537, 83.1027)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5AEE #ADEE5A
analogous
#5A63EE #9B5AEE #E55AEE
triadic
#9B5AEE #EE9B5A #5AEE9B
tetradic
#9B5AEE #EE5A63 #ADEE5A #5AEEE5
square
#9B5AEE #EE5A63 #ADEE5A #5AEEE5
split-complementary
#9B5AEE #EEE55A #63EE5A
monochromatic
#5D13BA #7923E8 #9B5AEE #BD91F4 #DEC9F9

Accessibility & contrast

On white

4.13
#9B5AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#9B5AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5AEE
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5AEE#FFFFFF#000000##000000
##9B5AEE1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF3
Deuteranopia (green-blind)
#1F7CEB
Tritanopia (blue-blind)
#897A9C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5aee;
/* rgb */ color: rgb(155, 90, 238);
/* oklch */ color: oklch(61.3% 0.214 300.4);
Tailwind
colors: {
  custom: {
    50: '#be8cf4',
    500: '#9b5aee',
    950: '#000000',
  },
}
SCSS
$custom: #9b5aee;
$custom-light: #be8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5aee",
  "rgb": {
    "r": 155,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 266.351,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61311,
    "c": 0.2139,
    "h": 300.4
  },
  "luminance": 0.20454
}

Semantic roles & 50–950 ramp

primary
#9B5AEE
secondary
#D5ECB8
accent
#DE0880
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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