#5B3AA2#5B3AA2

#5B3AA2 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.5% C 0.160 H 293.4°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5B3AA2
RGBrgb(91, 58, 162)
HSLhsl(259, 47%, 43%)
HSVhsv(259, 64%, 64%)
CMYKcmyk(43.8%, 64.2%, 0%, 36.5%)
CIE-LABlab(33.69, 39.06, -51.39)
CIE-LCHlch(33.69, 64.55, 307.24°)
OKLaboklab(44.51% 0.0636 -0.1467)
OKLCHoklch(44.51% 0.16 293.4)
XYZxyz(12.3473, 7.8586, 35.0417)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3AA2 #81A23A
analogous
#3A4DA2 #5B3AA2 #8F3AA2
triadic
#5B3AA2 #A25B3A #3AA25B
tetradic
#5B3AA2 #A23A4D #81A23A #3AA28F
square
#5B3AA2 #A23A4D #81A23A #3AA28F
split-complementary
#5B3AA2 #A28F3A #4DA23A
monochromatic
#281A48 #422A75 #5B3AA2 #7957C3 #9D84D3

Accessibility & contrast

On white

8.17
#5B3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5B3AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3AA2
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3AA2#FFFFFF#000000##FFFFFF
##5B3AA21.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#475268
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b3aa2;
/* rgb */ color: rgb(91, 58, 162);
/* oklch */ color: oklch(44.5% 0.160 293.4);
Tailwind
colors: {
  custom: {
    50: '#8f72be',
    500: '#5b3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3aa2;
$custom-light: #8f72be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3aa2",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 259.038,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44511,
    "c": 0.15994,
    "h": 293.4
  },
  "luminance": 0.07859
}

Semantic roles & 50–950 ramp

primary
#5B3AA2
secondary
#A8BD7B
accent
#D751AC
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5B3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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