#5B3AB2#5B3AB2

#5B3AB2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.180 H 290.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5B3AB2
RGBrgb(91, 58, 178)
HSLhsl(257, 51%, 46%)
HSVhsv(257, 67%, 70%)
CMYKcmyk(48.9%, 67.4%, 0%, 30.2%)
CIE-LABlab(34.93, 43.65, -58.94)
CIE-LCHlch(34.93, 73.34, 306.52°)
OKLaboklab(45.8% 0.0617 -0.1689)
OKLCHoklch(45.8% 0.18 290.1)
XYZxyz(13.8610, 8.4641, 43.0142)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3AB2 #91B23A
analogous
#3A55B2 #5B3AB2 #973AB2
triadic
#5B3AB2 #B25B3A #3AB25B
tetradic
#5B3AB2 #B23A55 #91B23A #3AB297
square
#5B3AB2 #B23A55 #91B23A #3AB297
split-complementary
#5B3AB2 #B2973A #55B23A
monochromatic
#2C1C56 #432B84 #5B3AB2 #7C5FCB #A28DDA

Accessibility & contrast

On white

7.80
#5B3AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5B3AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3AB2
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3AB2#FFFFFF#000000##FFFFFF
##5B3AB21.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#3E5871
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b3ab2;
/* rgb */ color: rgb(91, 58, 178);
/* oklch */ color: oklch(45.8% 0.180 290.1);
Tailwind
colors: {
  custom: {
    50: '#9172ca',
    500: '#5b3ab2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ab2;
$custom-light: #9172ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ab2",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 256.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.458,
    "c": 0.17986,
    "h": 290.1
  },
  "luminance": 0.08465
}

Semantic roles & 50–950 ramp

primary
#5B3AB2
secondary
#B2C483
accent
#DA4DB4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5B3AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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