#5B3CA5#5B3CA5

#5B3CA5 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.1% C 0.161 H 292.3°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5B3CA5
RGBrgb(91, 60, 165)
HSLhsl(258, 47%, 44%)
HSVhsv(258, 64%, 65%)
CMYKcmyk(44.8%, 63.6%, 0%, 35.3%)
CIE-LABlab(34.34, 38.77, -52.14)
CIE-LCHlch(34.34, 64.98, 306.64°)
OKLaboklab(45.06% 0.0611 -0.1489)
OKLCHoklch(45.06% 0.161 292.3)
XYZxyz(12.7199, 8.1721, 36.4972)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CA5 #86A53C
analogous
#3C52A5 #5B3CA5 #903CA5
triadic
#5B3CA5 #A55B3C #3CA55B
tetradic
#5B3CA5 #A53C52 #86A53C #3CA590
square
#5B3CA5 #A53C52 #86A53C #3CA590
split-complementary
#5B3CA5 #A5903C #52A53C
monochromatic
#291B4B #422C78 #5B3CA5 #7A5BC3 #9E88D4

Accessibility & contrast

On white

7.97
#5B3CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B3CA5
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CA5#FFFFFF#000000##FFFFFF
##5B3CA51.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#46546B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b3ca5;
/* rgb */ color: rgb(91, 60, 165);
/* oklch */ color: oklch(45.1% 0.161 292.3);
Tailwind
colors: {
  custom: {
    50: '#8f73c0',
    500: '#5b3ca5',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ca5;
$custom-light: #8f73c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ca5",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 165
  },
  "hsl": {
    "h": 257.714,
    "s": 46.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45055,
    "c": 0.16099,
    "h": 292.3
  },
  "luminance": 0.08172
}

Semantic roles & 50–950 ramp

primary
#5B3CA5
secondary
#ABBE7F
accent
#D651AF
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5B3CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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