#5B3BAE#5B3BAE

#5B3BAE is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.6% C 0.174 H 290.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#5B3BAE
RGBrgb(91, 59, 174)
HSLhsl(257, 49%, 46%)
HSVhsv(257, 66%, 68%)
CMYKcmyk(47.7%, 66.1%, 0%, 31.8%)
CIE-LABlab(34.82, 41.94, -56.74)
CIE-LCHlch(34.82, 70.56, 306.47°)
OKLaboklab(45.62% 0.0613 -0.1625)
OKLCHoklch(45.62% 0.174 290.7)
XYZxyz(13.5162, 8.4076, 40.9469)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BAE #8EAE3B
analogous
#3B54AE #5B3BAE #943BAE
triadic
#5B3BAE #AE5B3B #3BAE5B
tetradic
#5B3BAE #AE3B54 #8EAE3B #3BAE94
square
#5B3BAE #AE3B54 #8EAE3B #3BAE94
split-complementary
#5B3BAE #AE943B #54AE3B
monochromatic
#2B1C53 #432C80 #5B3BAE #7B5EC8 #A18CD8

Accessibility & contrast

On white

7.83
#5B3BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5B3BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3BAE
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BAE#FFFFFF#000000##FFFFFF
##5B3BAE1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#41576F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b3bae;
/* rgb */ color: rgb(91, 59, 174);
/* oklch */ color: oklch(45.6% 0.174 290.7);
Tailwind
colors: {
  custom: {
    50: '#9073c7',
    500: '#5b3bae',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bae;
$custom-light: #9073c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bae",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 174
  },
  "hsl": {
    "h": 256.696,
    "s": 49.356,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45619,
    "c": 0.17364,
    "h": 290.7
  },
  "luminance": 0.08408
}

Semantic roles & 50–950 ramp

primary
#5B3BAE
secondary
#B1C282
accent
#D94FB2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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