#5B3EA2#5B3EA2

#5B3EA2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.1% C 0.154 H 292.5°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#5B3EA2
RGBrgb(91, 62, 162)
HSLhsl(257, 45%, 44%)
HSVhsv(257, 62%, 64%)
CMYKcmyk(43.8%, 61.7%, 0%, 36.5%)
CIE-LABlab(34.55, 36.75, -49.99)
CIE-LCHlch(34.55, 62.04, 306.32°)
OKLaboklab(45.14% 0.059 -0.1426)
OKLCHoklch(45.14% 0.154 292.5)
XYZxyz(12.5568, 8.2777, 35.1116)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3EA2 #85A23E
analogous
#3E53A2 #5B3EA2 #8D3EA2
triadic
#5B3EA2 #A25B3E #3EA25B
tetradic
#5B3EA2 #A23E53 #85A23E #3EA28D
square
#5B3EA2 #A23E53 #85A23E #3EA28D
split-complementary
#5B3EA2 #A28D3E #53A23E
monochromatic
#291C49 #422D76 #5B3EA2 #7A5CC1 #9E89D2

Accessibility & contrast

On white

7.91
#5B3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5B3EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3EA2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3EA2#FFFFFF#000000##FFFFFF
##5B3EA21.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#47556A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b3ea2;
/* rgb */ color: rgb(91, 62, 162);
/* oklch */ color: oklch(45.1% 0.154 292.5);
Tailwind
colors: {
  custom: {
    50: '#8f75be',
    500: '#5b3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ea2;
$custom-light: #8f75be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ea2",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 257.4,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45142,
    "c": 0.15434,
    "h": 292.5
  },
  "luminance": 0.08278
}

Semantic roles & 50–950 ramp

primary
#5B3EA2
secondary
#ABBC80
accent
#D453AF
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5B3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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