#5B3ABA#5B3ABA

#5B3ABA is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.190 H 288.6°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5B3ABA
RGBrgb(91, 58, 186)
HSLhsl(255, 52%, 48%)
HSVhsv(255, 69%, 73%)
CMYKcmyk(51.1%, 68.8%, 0%, 27.1%)
CIE-LABlab(35.59, 45.96, -62.60)
CIE-LCHlch(35.59, 77.66, 306.28°)
OKLaboklab(46.47% 0.0605 -0.1797)
OKLCHoklch(46.47% 0.19 288.6)
XYZxyz(14.6878, 8.7948, 47.3685)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ABA #99BA3A
analogous
#3A59BA #5B3ABA #9B3ABA
triadic
#5B3ABA #BA5B3A #3ABA5B
tetradic
#5B3ABA #BA3A59 #99BA3A #3ABA9B
square
#5B3ABA #BA3A59 #99BA3A #3ABA9B
split-complementary
#5B3ABA #BA9B3A #59BA3A
monochromatic
#2D1D5D #442B8B #5B3ABA #7F63CE #A592DD

Accessibility & contrast

On white

7.61
#5B3ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5B3ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3ABA
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ABA#FFFFFF#000000##FFFFFF
##5B3ABA1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#395B75
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b3aba;
/* rgb */ color: rgb(91, 58, 186);
/* oklch */ color: oklch(46.5% 0.190 288.6);
Tailwind
colors: {
  custom: {
    50: '#9273d0',
    500: '#5b3aba',
    950: '#000000',
  },
}
SCSS
$custom: #5b3aba;
$custom-light: #9273d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3aba",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 186
  },
  "hsl": {
    "h": 255.469,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46473,
    "c": 0.1896,
    "h": 288.6
  },
  "luminance": 0.08795
}

Semantic roles & 50–950 ramp

primary
#5B3ABA
secondary
#B7C888
accent
#DC4CB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B3ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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