#9B5CE5#9B5CE5

#9B5CE5 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.0% C 0.201 H 301.9°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9B5CE5
RGBrgb(155, 92, 229)
HSLhsl(268, 72%, 63%)
HSVhsv(268, 60%, 90%)
CMYKcmyk(32.3%, 59.8%, 0%, 10.2%)
CIE-LABlab(52.15, 52.20, -60.19)
CIE-LCHlch(52.15, 79.67, 310.93°)
OKLaboklab(60.99% 0.1063 -0.1706)
OKLCHoklch(60.99% 0.201 301.9)
XYZxyz(31.4843, 20.2799, 76.3693)
Luminance0.2028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CE5 #A6E55C
analogous
#5C61E5 #9B5CE5 #DF5CE5
triadic
#9B5CE5 #E59B5C #5CE59B
tetradic
#9B5CE5 #E55C61 #A6E55C #5CE5DF
square
#9B5CE5 #E55C61 #A6E55C #5CE5DF
split-complementary
#9B5CE5 #E5DF5C #61E55C
monochromatic
#5E1BAB #7B27DD #9B5CE5 #BB91ED #DCC6F6

Accessibility & contrast

On white

4.15
#9B5CE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#9B5CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CE5
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CE5#FFFFFF#000000##000000
##9B5CE51.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#077BE9
Deuteranopia (green-blind)
#347CE2
Tritanopia (blue-blind)
#8C7998
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9b5ce5;
/* rgb */ color: rgb(155, 92, 229);
/* oklch */ color: oklch(61.0% 0.201 301.9);
Tailwind
colors: {
  custom: {
    50: '#bd8dee',
    500: '#9b5ce5',
    950: '#000000',
  },
}
SCSS
$custom: #9b5ce5;
$custom-light: #bd8dee;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5ce5",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 267.591,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60986,
    "c": 0.20101,
    "h": 301.9
  },
  "luminance": 0.2028
}

Semantic roles & 50–950 ramp

primary
#9B5CE5
secondary
#D0E7B6
accent
#D5117B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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