#5B3CA3#5B3CA3

#5B3CA3 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.9% C 0.158 H 292.7°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5B3CA3
RGBrgb(91, 60, 163)
HSLhsl(258, 46%, 44%)
HSVhsv(258, 63%, 64%)
CMYKcmyk(44.2%, 63.2%, 0%, 36.1%)
CIE-LABlab(34.19, 38.20, -51.18)
CIE-LCHlch(34.19, 63.86, 306.74°)
OKLaboklab(44.9% 0.0613 -0.1461)
OKLCHoklch(44.9% 0.158 292.7)
XYZxyz(12.5393, 8.0998, 35.5460)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CA3 #84A33C
analogous
#3C50A3 #5B3CA3 #8E3CA3
triadic
#5B3CA3 #A35B3C #3CA35B
tetradic
#5B3CA3 #A33C50 #84A33C #3CA38E
square
#5B3CA3 #A33C50 #84A33C #3CA38E
split-complementary
#5B3CA3 #A38E3C #50A33C
monochromatic
#291B4A #422C76 #5B3CA3 #795AC2 #9E87D3

Accessibility & contrast

On white

8.02
#5B3CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5B3CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CA3
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CA3#FFFFFF#000000##FFFFFF
##5B3CA31.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A6
Deuteranopia (green-blind)
#004EA1
Tritanopia (blue-blind)
#47546A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b3ca3;
/* rgb */ color: rgb(91, 60, 163);
/* oklch */ color: oklch(44.9% 0.158 292.7);
Tailwind
colors: {
  custom: {
    50: '#8f73bf',
    500: '#5b3ca3',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ca3;
$custom-light: #8f73bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ca3",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 163
  },
  "hsl": {
    "h": 258.058,
    "s": 46.188,
    "l": 43.725
  },
  "oklch": {
    "l": 0.449,
    "c": 0.15843,
    "h": 292.7
  },
  "luminance": 0.081
}

Semantic roles & 50–950 ramp

primary
#5B3CA3
secondary
#AABD7E
accent
#D652AE
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5B3CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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