#5B3AAE#5B3AAE

#5B3AAE is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.175 H 290.9°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5B3AAE
RGBrgb(91, 58, 174)
HSLhsl(257, 50%, 45%)
HSVhsv(257, 67%, 68%)
CMYKcmyk(47.7%, 66.7%, 0%, 31.8%)
CIE-LABlab(34.61, 42.50, -57.08)
CIE-LCHlch(34.61, 71.16, 306.67°)
OKLaboklab(45.47% 0.0623 -0.1635)
OKLCHoklch(45.47% 0.175 290.9)
XYZxyz(13.4653, 8.3058, 40.9299)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3AAE #8DAE3A
analogous
#3A53AE #5B3AAE #953AAE
triadic
#5B3AAE #AE5B3A #3AAE5B
tetradic
#5B3AAE #AE3A53 #8DAE3A #3AAE95
square
#5B3AAE #AE3A53 #8DAE3A #3AAE95
split-complementary
#5B3AAE #AE953A #53AE3A
monochromatic
#2B1B52 #432B80 #5B3AAE #7B5CC9 #A08AD8

Accessibility & contrast

On white

7.89
#5B3AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5B3AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3AAE
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3AAE#FFFFFF#000000##FFFFFF
##5B3AAE1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#41566F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b3aae;
/* rgb */ color: rgb(91, 58, 174);
/* oklch */ color: oklch(45.5% 0.175 290.9);
Tailwind
colors: {
  custom: {
    50: '#9072c7',
    500: '#5b3aae',
    950: '#000000',
  },
}
SCSS
$custom: #5b3aae;
$custom-light: #9072c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3aae",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 174
  },
  "hsl": {
    "h": 257.069,
    "s": 50,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4547,
    "c": 0.17492,
    "h": 290.9
  },
  "luminance": 0.08306
}

Semantic roles & 50–950 ramp

primary
#5B3AAE
secondary
#B0C281
accent
#DA4EB2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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