#5B3AAA#5B3AAA

#5B3AAA is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.1% C 0.170 H 291.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5B3AAA
RGBrgb(91, 58, 170)
HSLhsl(258, 49%, 45%)
HSVhsv(258, 66%, 67%)
CMYKcmyk(46.5%, 65.9%, 0%, 33.3%)
CIE-LABlab(34.30, 41.35, -55.20)
CIE-LCHlch(34.30, 68.97, 306.84°)
OKLaboklab(45.15% 0.0628 -0.1579)
OKLCHoklch(45.15% 0.17 291.7)
XYZxyz(13.0811, 8.1521, 38.9067)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3AAA #89AA3A
analogous
#3A51AA #5B3AAA #933AAA
triadic
#5B3AAA #AA5B3A #3AAA5B
tetradic
#5B3AAA #AA3A51 #89AA3A #3AAA93
square
#5B3AAA #AA3A51 #89AA3A #3AAA93
split-complementary
#5B3AAA #AA933A #51AA3A
monochromatic
#2A1B4F #432A7C #5B3AAA #7A5AC7 #9F88D6

Accessibility & contrast

On white

7.98
#5B3AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5B3AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3AAA
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3AAA#FFFFFF#000000##FFFFFF
##5B3AAA1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#43556D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b3aaa;
/* rgb */ color: rgb(91, 58, 170);
/* oklch */ color: oklch(45.1% 0.170 291.7);
Tailwind
colors: {
  custom: {
    50: '#9072c4',
    500: '#5b3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5b3aaa;
$custom-light: #9072c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3aaa",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 257.679,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45145,
    "c": 0.16996,
    "h": 291.7
  },
  "luminance": 0.08153
}

Semantic roles & 50–950 ramp

primary
#5B3AAA
secondary
#ADC17F
accent
#D94FB0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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