#5B1C8A#5B1C8A

#5B1C8A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.170 H 305.6°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#5B1C8A
RGBrgb(91, 28, 138)
HSLhsl(274, 66%, 33%)
HSVhsv(274, 80%, 54%)
CMYKcmyk(34.1%, 79.7%, 0%, 45.9%)
CIE-LABlab(26.42, 47.70, -48.50)
CIE-LCHlch(26.42, 68.02, 314.52°)
OKLaboklab(38.73% 0.0989 -0.1381)
OKLCHoklch(38.73% 0.17 305.6)
XYZxyz(9.3161, 4.8897, 24.4929)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1C8A #4B8A1C
analogous
#241C8A #5B1C8A #8A1C82
triadic
#5B1C8A #8A5B1C #1C8A5B
tetradic
#5B1C8A #8A241C #4B8A1C #1C828A
square
#5B1C8A #8A241C #4B8A1C #1C828A
split-complementary
#5B1C8A #828A1C #1C8A24
monochromatic
#180724 #391257 #5B1C8A #7D26BD #9B47DA

Accessibility & contrast

On white

10.62
#5B1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5B1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1C8A
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1C8A#FFFFFF#000000##FFFFFF
##5B1C8A1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#523853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b1c8a;
/* rgb */ color: rgb(91, 28, 138);
/* oklch */ color: oklch(38.7% 0.170 305.6);
Tailwind
colors: {
  custom: {
    50: '#8e60ad',
    500: '#5b1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5b1c8a;
$custom-light: #8e60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1c8a",
  "rgb": {
    "r": 91,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 274.364,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3873,
    "c": 0.16986,
    "h": 305.6
  },
  "luminance": 0.0489
}

Semantic roles & 50–950 ramp

primary
#5B1C8A
secondary
#78BB46
accent
#E93F87
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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