#5B3CA4#5B3CA4

#5B3CA4 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 45.0% C 0.160 H 292.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5B3CA4
RGBrgb(91, 60, 164)
HSLhsl(258, 46%, 44%)
HSVhsv(258, 63%, 64%)
CMYKcmyk(44.5%, 63.4%, 0%, 35.7%)
CIE-LABlab(34.26, 38.49, -51.66)
CIE-LCHlch(34.26, 64.42, 306.69°)
OKLaboklab(44.98% 0.0612 -0.1475)
OKLCHoklch(44.98% 0.16 292.5)
XYZxyz(12.6292, 8.1358, 36.0197)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CA4 #85A43C
analogous
#3C51A4 #5B3CA4 #8F3CA4
triadic
#5B3CA4 #A45B3C #3CA45B
tetradic
#5B3CA4 #A43C51 #85A43C #3CA48F
square
#5B3CA4 #A43C51 #85A43C #3CA48F
split-complementary
#5B3CA4 #A48F3C #51A43C
monochromatic
#291B4A #422C77 #5B3CA4 #7A5AC3 #9E87D3

Accessibility & contrast

On white

7.99
#5B3CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5B3CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CA4
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CA4#FFFFFF#000000##FFFFFF
##5B3CA41.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#46546A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b3ca4;
/* rgb */ color: rgb(91, 60, 164);
/* oklch */ color: oklch(45.0% 0.160 292.5);
Tailwind
colors: {
  custom: {
    50: '#8f73c0',
    500: '#5b3ca4',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ca4;
$custom-light: #8f73c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ca4",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 164
  },
  "hsl": {
    "h": 257.885,
    "s": 46.429,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44977,
    "c": 0.15971,
    "h": 292.5
  },
  "luminance": 0.08136
}

Semantic roles & 50–950 ramp

primary
#5B3CA4
secondary
#ABBD7E
accent
#D652AF
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5B3CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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