#9B5CE4#9B5CE4

#9B5CE4 is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.9% C 0.200 H 302.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9B5CE4
RGBrgb(155, 92, 228)
HSLhsl(268, 72%, 63%)
HSVhsv(268, 60%, 89%)
CMYKcmyk(32%, 59.6%, 0%, 10.6%)
CIE-LABlab(52.09, 51.96, -59.73)
CIE-LCHlch(52.09, 79.17, 311.02°)
OKLaboklab(60.92% 0.1064 -0.1692)
OKLCHoklch(60.92% 0.2 302.1)
XYZxyz(31.3450, 20.2242, 75.6361)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CE4 #A5E45C
analogous
#5C61E4 #9B5CE4 #DF5CE4
triadic
#9B5CE4 #E49B5C #5CE49B
tetradic
#9B5CE4 #E45C61 #A5E45C #5CE4DF
square
#9B5CE4 #E45C61 #A5E45C #5CE4DF
split-complementary
#9B5CE4 #E4DF5C #61E45C
monochromatic
#5E1CAA #7B27DB #9B5CE4 #BB91ED #DBC5F5

Accessibility & contrast

On white

4.16
#9B5CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#9B5CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CE4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CE4#FFFFFF#000000##000000
##9B5CE41.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C7BE8
Deuteranopia (green-blind)
#357CE1
Tritanopia (blue-blind)
#8D7897
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9b5ce4;
/* rgb */ color: rgb(155, 92, 228);
/* oklch */ color: oklch(60.9% 0.200 302.1);
Tailwind
colors: {
  custom: {
    50: '#bd8ded',
    500: '#9b5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #9b5ce4;
$custom-light: #bd8ded;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5ce4",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 267.794,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60921,
    "c": 0.19988,
    "h": 302.1
  },
  "luminance": 0.20224
}

Semantic roles & 50–950 ramp

primary
#9B5CE4
secondary
#D0E7B5
accent
#D4127A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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