#5B1A87#5B1A87

#5B1A87 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.169 H 306.9°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5B1A87
RGBrgb(91, 26, 135)
HSLhsl(276, 68%, 32%)
HSVhsv(276, 81%, 53%)
CMYKcmyk(32.6%, 80.7%, 0%, 47.1%)
CIE-LABlab(25.90, 47.77, -47.47)
CIE-LCHlch(25.90, 67.35, 315.18°)
OKLaboklab(38.29% 0.1014 -0.1351)
OKLCHoklch(38.29% 0.169 306.9)
XYZxyz(9.0560, 4.7123, 23.3495)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1A87 #46871A
analogous
#251A87 #5B1A87 #871A7D
triadic
#5B1A87 #875B1A #1A875B
tetradic
#5B1A87 #87251A #46871A #1A7D87
square
#5B1A87 #87251A #46871A #1A7D87
split-complementary
#5B1A87 #7D871A #1A8725
monochromatic
#160620 #381054 #5B1A87 #7E24BA #9C41DA

Accessibility & contrast

On white

10.81
#5B1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5B1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1A87
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1A87#FFFFFF#000000##FFFFFF
##5B1A871.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#533651
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b1a87;
/* rgb */ color: rgb(91, 26, 135);
/* oklch */ color: oklch(38.3% 0.169 306.9);
Tailwind
colors: {
  custom: {
    50: '#8e5fab',
    500: '#5b1a87',
    950: '#000000',
  },
}
SCSS
$custom: #5b1a87;
$custom-light: #8e5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1a87",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 275.78,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38288,
    "c": 0.16889,
    "h": 306.9
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#5B1A87
secondary
#73BA42
accent
#EB3D83
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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