#5B3AD5#5B3AD5

#5B3AD5 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.9% C 0.221 H 284.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5B3AD5
RGBrgb(91, 58, 213)
HSLhsl(253, 65%, 53%)
HSVhsv(253, 73%, 84%)
CMYKcmyk(57.3%, 72.8%, 0%, 16.5%)
CIE-LABlab(37.94, 53.76, -74.48)
CIE-LCHlch(37.94, 91.86, 305.82°)
OKLaboklab(48.87% 0.0551 -0.2145)
OKLCHoklch(48.87% 0.221 284.4)
XYZxyz(17.8340, 10.0533, 63.9386)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3AD5 #B4D53A
analogous
#3A66D5 #5B3AD5 #A83AD5
triadic
#5B3AD5 #D55B3A #3AD55B
tetradic
#5B3AD5 #D53A66 #B4D53A #3AD5A8
square
#5B3AD5 #D53A66 #B4D53A #3AD5A8
split-complementary
#5B3AD5 #D5A83A #66D53A
monochromatic
#2F1A7A #4225AD #5B3AD5 #856CE0 #AF9FEB

Accessibility & contrast

On white

6.97
#5B3AD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5B3AD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3AD5
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3AD5#FFFFFF#000000##FFFFFF
##5B3AD51.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDA
Deuteranopia (green-blind)
#0054D2
Tritanopia (blue-blind)
#186584
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b3ad5;
/* rgb */ color: rgb(91, 58, 213);
/* oklch */ color: oklch(48.9% 0.221 284.4);
Tailwind
colors: {
  custom: {
    50: '#9674e3',
    500: '#5b3ad5',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ad5;
$custom-light: #9674e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ad5",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 213
  },
  "hsl": {
    "h": 252.774,
    "s": 64.854,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48867,
    "c": 0.22149,
    "h": 284.4
  },
  "luminance": 0.10054
}

Semantic roles & 50–950 ramp

primary
#5B3AD5
secondary
#C9D794
accent
#E840C4
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B3AD5

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

Preview Lab → · Contrast checker → · Palette generator →

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