#5B3CAA#5B3CAA

#5B3CAA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.4% C 0.167 H 291.2°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5B3CAA
RGBrgb(91, 60, 170)
HSLhsl(257, 48%, 45%)
HSVhsv(257, 65%, 67%)
CMYKcmyk(46.5%, 64.7%, 0%, 33.3%)
CIE-LABlab(34.72, 40.22, -54.52)
CIE-LCHlch(34.72, 67.75, 306.41°)
OKLaboklab(45.45% 0.0606 -0.1559)
OKLCHoklch(45.45% 0.167 291.2)
XYZxyz(13.1839, 8.3577, 38.9410)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CAA #8BAA3C
analogous
#3C54AA #5B3CAA #923CAA
triadic
#5B3CAA #AA5B3C #3CAA5B
tetradic
#5B3CAA #AA3C54 #8BAA3C #3CAA92
square
#5B3CAA #AA3C54 #8BAA3C #3CAA92
split-complementary
#5B3CAA #AA923C #54AA3C
monochromatic
#2B1C50 #432C7D #5B3CAA #7B5DC6 #A08BD6

Accessibility & contrast

On white

7.86
#5B3CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5B3CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CAA
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CAA#FFFFFF#000000##FFFFFF
##5B3CAA1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#43566D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b3caa;
/* rgb */ color: rgb(91, 60, 170);
/* oklch */ color: oklch(45.4% 0.167 291.2);
Tailwind
colors: {
  custom: {
    50: '#9073c4',
    500: '#5b3caa',
    950: '#000000',
  },
}
SCSS
$custom: #5b3caa;
$custom-light: #9073c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3caa",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 170
  },
  "hsl": {
    "h": 256.909,
    "s": 47.826,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45448,
    "c": 0.16732,
    "h": 291.2
  },
  "luminance": 0.08358
}

Semantic roles & 50–950 ramp

primary
#5B3CAA
secondary
#AFC081
accent
#D750B1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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