#5B3AD9#5B3AD9

#5B3AD9 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.2% C 0.226 H 283.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5B3AD9
RGBrgb(91, 58, 217)
HSLhsl(252, 68%, 54%)
HSVhsv(252, 73%, 85%)
CMYKcmyk(58.1%, 73.3%, 0%, 14.9%)
CIE-LABlab(38.30, 54.91, -76.19)
CIE-LCHlch(38.30, 93.91, 305.78°)
OKLaboklab(49.24% 0.0542 -0.2195)
OKLCHoklch(49.24% 0.226 283.9)
XYZxyz(18.3480, 10.2588, 66.6455)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3AD9 #B8D93A
analogous
#3A69D9 #5B3AD9 #AB3AD9
triadic
#5B3AD9 #D95B3A #3AD95B
tetradic
#5B3AD9 #D93A69 #B8D93A #3AD9AB
square
#5B3AD9 #D93A69 #B8D93A #3AD9AB
split-complementary
#5B3AD9 #D9AB3A #69D93A
monochromatic
#2E1980 #4123B3 #5B3AD9 #866DE3 #B0A1ED

Accessibility & contrast

On white

6.88
#5B3AD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5B3AD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3AD9
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3AD9#FFFFFF#000000##FFFFFF
##5B3AD91.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDE
Deuteranopia (green-blind)
#0055D6
Tritanopia (blue-blind)
#0D6687
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b3ad9;
/* rgb */ color: rgb(91, 58, 217);
/* oklch */ color: oklch(49.2% 0.226 283.9);
Tailwind
colors: {
  custom: {
    50: '#9774e6',
    500: '#5b3ad9',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ad9;
$custom-light: #9774e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ad9",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 217
  },
  "hsl": {
    "h": 252.453,
    "s": 67.66,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49236,
    "c": 0.22609,
    "h": 283.9
  },
  "luminance": 0.1026
}

Semantic roles & 50–950 ramp

primary
#5B3AD9
secondary
#CBD995
accent
#EB3DC7
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B3AD9

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

Preview Lab → · Contrast checker → · Palette generator →

#5B3AD9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva