#9B5AE3#9B5AE3

#9B5AE3 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.6% C 0.202 H 302.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9B5AE3
RGBrgb(155, 90, 227)
HSLhsl(268, 71%, 62%)
HSVhsv(268, 60%, 89%)
CMYKcmyk(31.7%, 60.4%, 0%, 11%)
CIE-LABlab(51.64, 52.75, -59.89)
CIE-LCHlch(51.64, 79.81, 311.37°)
OKLaboklab(60.57% 0.1088 -0.1697)
OKLCHoklch(60.57% 0.202 302.7)
XYZxyz(31.0357, 19.8269, 74.8501)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5AE3 #A2E35A
analogous
#5A5EE3 #9B5AE3 #DF5AE3
triadic
#9B5AE3 #E39B5A #5AE39B
tetradic
#9B5AE3 #E35A5E #A2E35A #5AE3DF
square
#9B5AE3 #E35A5E #A2E35A #5AE3DF
split-complementary
#9B5AE3 #E3DF5A #5EE35A
monochromatic
#5E1CA6 #7B26DA #9B5AE3 #BB8EEC #DAC3F5

Accessibility & contrast

On white

4.23
#9B5AE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#9B5AE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5AE3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5AE3#FFFFFF#000000##000000
##9B5AE31.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#017AE7
Deuteranopia (green-blind)
#337BE0
Tritanopia (blue-blind)
#8D7796
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9b5ae3;
/* rgb */ color: rgb(155, 90, 227);
/* oklch */ color: oklch(60.6% 0.202 302.7);
Tailwind
colors: {
  custom: {
    50: '#bd8cec',
    500: '#9b5ae3',
    950: '#000000',
  },
}
SCSS
$custom: #9b5ae3;
$custom-light: #bd8cec;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5ae3",
  "rgb": {
    "r": 155,
    "g": 90,
    "b": 227
  },
  "hsl": {
    "h": 268.467,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60574,
    "c": 0.20155,
    "h": 302.7
  },
  "luminance": 0.19827
}

Semantic roles & 50–950 ramp

primary
#9B5AE3
secondary
#CEE6B3
accent
#D31278
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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