#5B1B8A#5B1B8A

#5B1B8A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.171 H 305.7°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5B1B8A
RGBrgb(91, 27, 138)
HSLhsl(275, 67%, 32%)
HSVhsv(275, 80%, 54%)
CMYKcmyk(34.1%, 80.4%, 0%, 45.9%)
CIE-LABlab(26.28, 48.09, -48.72)
CIE-LCHlch(26.28, 68.45, 314.63°)
OKLaboklab(38.64% 0.0998 -0.1387)
OKLCHoklch(38.64% 0.171 305.7)
XYZxyz(9.2927, 4.8431, 24.4851)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B8A #4A8A1B
analogous
#241B8A #5B1B8A #8A1B81
triadic
#5B1B8A #8A5B1B #1B8A5B
tetradic
#5B1B8A #8A241B #4A8A1B #1B818A
square
#5B1B8A #8A241B #4A8A1B #1B818A
split-complementary
#5B1B8A #818A1B #1B8A24
monochromatic
#170724 #391157 #5B1B8A #7D25BD #9B45DB

Accessibility & contrast

On white

10.67
#5B1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5B1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1B8A
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B8A#FFFFFF#000000##FFFFFF
##5B1B8A1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#523852
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b1b8a;
/* rgb */ color: rgb(91, 27, 138);
/* oklch */ color: oklch(38.6% 0.171 305.7);
Tailwind
colors: {
  custom: {
    50: '#8e60ad',
    500: '#5b1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b8a;
$custom-light: #8e60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b8a",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 274.595,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38635,
    "c": 0.17089,
    "h": 305.7
  },
  "luminance": 0.04843
}

Semantic roles & 50–950 ramp

primary
#5B1B8A
secondary
#77BC45
accent
#EA3E87
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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