#5B3ED1#5B3ED1

#5B3ED1 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.0% C 0.213 H 284.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5B3ED1
RGBrgb(91, 62, 209)
HSLhsl(252, 62%, 53%)
HSVhsv(252, 70%, 82%)
CMYKcmyk(56.5%, 70.3%, 0%, 18%)
CIE-LABlab(38.33, 50.51, -71.54)
CIE-LCHlch(38.33, 87.58, 305.23°)
OKLaboklab(49.03% 0.0529 -0.2059)
OKLCHoklch(49.03% 0.213 284.4)
XYZxyz(17.5421, 10.2718, 61.3675)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ED1 #B4D13E
analogous
#3E6AD1 #5B3ED1 #A53ED1
triadic
#5B3ED1 #D15B3E #3ED15B
tetradic
#5B3ED1 #D13E6A #B4D13E #3ED1A5
square
#5B3ED1 #D13E6A #B4D13E #3ED1A5
split-complementary
#5B3ED1 #D1A53E #6AD13E
monochromatic
#2F1D78 #4228A9 #5B3ED1 #856FDD #AFA1E9

Accessibility & contrast

On white

6.87
#5B3ED1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5B3ED1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3ED1
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ED1#FFFFFF#000000##FFFFFF
##5B3ED11.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0055CE
Tritanopia (blue-blind)
#1F6583
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b3ed1;
/* rgb */ color: rgb(91, 62, 209);
/* oklch */ color: oklch(49.0% 0.213 284.4);
Tailwind
colors: {
  custom: {
    50: '#9576e0',
    500: '#5b3ed1',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ed1;
$custom-light: #9576e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ed1",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 209
  },
  "hsl": {
    "h": 251.837,
    "s": 61.506,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49034,
    "c": 0.2126,
    "h": 284.4
  },
  "luminance": 0.10273
}

Semantic roles & 50–950 ramp

primary
#5B3ED1
secondary
#C9D596
accent
#E543C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5B3ED1

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

Preview Lab → · Contrast checker → · Palette generator →

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