#5B3CA2#5B3CA2

#5B3CA2 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.8% C 0.157 H 293.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5B3CA2
RGBrgb(91, 60, 162)
HSLhsl(258, 46%, 44%)
HSVhsv(258, 63%, 64%)
CMYKcmyk(43.8%, 63%, 0%, 36.5%)
CIE-LABlab(34.12, 37.91, -50.70)
CIE-LCHlch(34.12, 63.30, 306.79°)
OKLaboklab(44.82% 0.0613 -0.1447)
OKLCHoklch(44.82% 0.157 293)
XYZxyz(12.4501, 8.0641, 35.0760)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CA2 #83A23C
analogous
#3C50A2 #5B3CA2 #8E3CA2
triadic
#5B3CA2 #A25B3C #3CA25B
tetradic
#5B3CA2 #A23C50 #83A23C #3CA28E
square
#5B3CA2 #A23C50 #83A23C #3CA28E
split-complementary
#5B3CA2 #A28E3C #50A23C
monochromatic
#291B49 #422B75 #5B3CA2 #7959C2 #9D86D2

Accessibility & contrast

On white

8.04
#5B3CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5B3CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CA2
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CA2#FFFFFF#000000##FFFFFF
##5B3CA21.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#475369
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b3ca2;
/* rgb */ color: rgb(91, 60, 162);
/* oklch */ color: oklch(44.8% 0.157 293.0);
Tailwind
colors: {
  custom: {
    50: '#8f73be',
    500: '#5b3ca2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ca2;
$custom-light: #8f73be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ca2",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 162
  },
  "hsl": {
    "h": 258.235,
    "s": 45.946,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44823,
    "c": 0.15715,
    "h": 293
  },
  "luminance": 0.08064
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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