#5B3AC0#5B3AC0

#5B3AC0 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.0% C 0.197 H 287.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5B3AC0
RGBrgb(91, 58, 192)
HSLhsl(255, 54%, 49%)
HSVhsv(255, 70%, 75%)
CMYKcmyk(52.6%, 69.8%, 0%, 24.7%)
CIE-LABlab(36.09, 47.69, -65.31)
CIE-LCHlch(36.09, 80.87, 306.14°)
OKLaboklab(46.99% 0.0594 -0.1876)
OKLCHoklch(46.99% 0.197 287.6)
XYZxyz(15.3391, 9.0553, 50.7985)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3AC0 #9FC03A
analogous
#3A5CC0 #5B3AC0 #9E3AC0
triadic
#5B3AC0 #C05B3A #3AC05B
tetradic
#5B3AC0 #C03A5C #9FC03A #3AC09E
square
#5B3AC0 #C03A5C #9FC03A #3AC09E
split-complementary
#5B3AC0 #C09E3A #5CC03A
monochromatic
#2E1E62 #452C91 #5B3AC0 #8166D1 #A795DF

Accessibility & contrast

On white

7.47
#5B3AC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5B3AC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3AC0
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3AC0#FFFFFF#000000##FFFFFF
##5B3AC01.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#345D79
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b3ac0;
/* rgb */ color: rgb(91, 58, 192);
/* oklch */ color: oklch(47.0% 0.197 287.6);
Tailwind
colors: {
  custom: {
    50: '#9373d4',
    500: '#5b3ac0',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ac0;
$custom-light: #9373d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ac0",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 192
  },
  "hsl": {
    "h": 254.776,
    "s": 53.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4699,
    "c": 0.19681,
    "h": 287.6
  },
  "luminance": 0.09056
}

Semantic roles & 50–950 ramp

primary
#5B3AC0
secondary
#BBCA8B
accent
#DD4BB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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