#5B3ED5#5B3ED5

#5B3ED5 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.4% C 0.217 H 283.9°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#5B3ED5
RGBrgb(91, 62, 213)
HSLhsl(252, 64%, 54%)
HSVhsv(252, 71%, 84%)
CMYKcmyk(57.3%, 70.9%, 0%, 16.5%)
CIE-LABlab(38.68, 51.69, -73.27)
CIE-LCHlch(38.68, 89.67, 305.20°)
OKLaboklab(49.39% 0.0521 -0.211)
OKLCHoklch(49.39% 0.217 283.9)
XYZxyz(18.0436, 10.4724, 64.0085)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ED5 #B8D53E
analogous
#3E6DD5 #5B3ED5 #A73ED5
triadic
#5B3ED5 #D55B3E #3ED55B
tetradic
#5B3ED5 #D53E6D #B8D53E #3ED5A7
square
#5B3ED5 #D53E6D #B8D53E #3ED5A7
split-complementary
#5B3ED5 #D5A73E #6DD53E
monochromatic
#2E1B7D #4126B0 #5B3ED5 #8670E0 #B0A3EB

Accessibility & contrast

On white

6.79
#5B3ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5B3ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3ED5
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ED5#FFFFFF#000000##FFFFFF
##5B3ED51.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D9
Deuteranopia (green-blind)
#0056D2
Tritanopia (blue-blind)
#176785
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b3ed5;
/* rgb */ color: rgb(91, 62, 213);
/* oklch */ color: oklch(49.4% 0.217 283.9);
Tailwind
colors: {
  custom: {
    50: '#9676e3',
    500: '#5b3ed5',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ed5;
$custom-light: #9676e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ed5",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 213
  },
  "hsl": {
    "h": 251.523,
    "s": 64.255,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49392,
    "c": 0.21732,
    "h": 283.9
  },
  "luminance": 0.10473
}

Semantic roles & 50–950 ramp

primary
#5B3ED5
secondary
#CBD897
accent
#E741C7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5B3ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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