#9B5EF1#9B5EF1

#9B5EF1 is a light, highly saturated violet. Relative luminance 0.213; OKLCH L 62.1% C 0.212 H 299.2°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9B5EF1
RGBrgb(155, 94, 241)
HSLhsl(265, 84%, 66%)
HSVhsv(265, 61%, 95%)
CMYKcmyk(35.7%, 61%, 0%, 5.5%)
CIE-LABlab(53.30, 54.09, -65.07)
CIE-LCHlch(53.30, 84.62, 309.74°)
OKLaboklab(62.07% 0.1035 -0.1849)
OKLCHoklch(62.07% 0.212 299.2)
XYZxyz(33.3935, 21.3245, 85.5587)
Luminance0.2132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5EF1 #B4F15E
analogous
#5E6AF1 #9B5EF1 #E45EF1
triadic
#9B5EF1 #F19B5E #5EF19B
tetradic
#9B5EF1 #F15E6A #B4F15E #5EF1E4
square
#9B5EF1 #F15E6A #B4F15E #5EF1E4
split-complementary
#9B5EF1 #F1E45E #6AF15E
monochromatic
#5B11C4 #7826EC #9B5EF1 #BE96F6 #E1CFFB

Accessibility & contrast

On white

3.99
#9B5EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#9B5EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5EF1
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5EF1#FFFFFF#000000##000000
##9B5EF11.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF6
Deuteranopia (green-blind)
#227EEE
Tritanopia (blue-blind)
#887E9F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9b5ef1;
/* rgb */ color: rgb(155, 94, 241);
/* oklch */ color: oklch(62.1% 0.212 299.2);
Tailwind
colors: {
  custom: {
    50: '#be8ef6',
    500: '#9b5ef1',
    950: '#000000',
  },
}
SCSS
$custom: #9b5ef1;
$custom-light: #be8ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5ef1",
  "rgb": {
    "r": 155,
    "g": 94,
    "b": 241
  },
  "hsl": {
    "h": 264.898,
    "s": 84,
    "l": 65.686
  },
  "oklch": {
    "l": 0.62067,
    "c": 0.21193,
    "h": 299.2
  },
  "luminance": 0.21325
}

Semantic roles & 50–950 ramp

primary
#9B5EF1
secondary
#DAEEBD
accent
#E00585
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130D17
muted
#827D85

Preview Lab

Preview with #9B5EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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