#5B3ED2#5B3ED2

#5B3ED2 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.1% C 0.214 H 284.3°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5B3ED2
RGBrgb(91, 62, 210)
HSLhsl(252, 62%, 53%)
HSVhsv(252, 70%, 82%)
CMYKcmyk(56.7%, 70.5%, 0%, 17.6%)
CIE-LABlab(38.41, 50.81, -71.97)
CIE-LCHlch(38.41, 88.10, 305.22°)
OKLaboklab(49.12% 0.0527 -0.2072)
OKLCHoklch(49.12% 0.214 284.3)
XYZxyz(17.6663, 10.3215, 62.0216)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ED2 #B5D23E
analogous
#3E6BD2 #5B3ED2 #A53ED2
triadic
#5B3ED2 #D25B3E #3ED25B
tetradic
#5B3ED2 #D23E6B #B5D23E #3ED2A5
square
#5B3ED2 #D23E6B #B5D23E #3ED2A5
split-complementary
#5B3ED2 #D2A53E #6BD23E
monochromatic
#2F1C79 #4228AB #5B3ED2 #8570DE #AFA1E9

Accessibility & contrast

On white

6.85
#5B3ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5B3ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3ED2
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ED2#FFFFFF#000000##FFFFFF
##5B3ED21.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#1D6684
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b3ed2;
/* rgb */ color: rgb(91, 62, 210);
/* oklch */ color: oklch(49.1% 0.214 284.3);
Tailwind
colors: {
  custom: {
    50: '#9576e1',
    500: '#5b3ed2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ed2;
$custom-light: #9576e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ed2",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 210
  },
  "hsl": {
    "h": 251.757,
    "s": 62.185,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49123,
    "c": 0.21379,
    "h": 284.3
  },
  "luminance": 0.10323
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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