#5B1A52#5B1A52

#5B1A52 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.5% C 0.118 H 333.8°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5B1A52
RGBrgb(91, 26, 82)
HSLhsl(308, 56%, 23%)
HSVhsv(308, 71%, 36%)
CMYKcmyk(0%, 71.4%, 9.9%, 64.3%)
CIE-LABlab(22.20, 36.67, -19.08)
CIE-LCHlch(22.20, 41.34, 332.51°)
OKLaboklab(34.48% 0.1061 -0.0521)
OKLCHoklch(34.48% 0.118 333.8)
XYZxyz(6.2068, 3.5726, 8.3437)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1A52 #1A5B23
analogous
#431A5B #5B1A52 #5B1A31
triadic
#5B1A52 #525B1A #1A525B
tetradic
#5B1A52 #5B431A #1A5B23 #1A315B
square
#5B1A52 #5B431A #1A5B23 #1A315B
split-complementary
#5B1A52 #315B1A #1A5B43
monochromatic
#180715 #2B0C27 #5B1A52 #8B287D #BA35A8

Accessibility & contrast

On white

12.25
#5B1A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5B1A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1A52
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1A52#FFFFFF#000000##FFFFFF
##5B1A521.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192F54
Deuteranopia (green-blind)
#2F3950
Tritanopia (blue-blind)
#5F1F33
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1a52;
/* rgb */ color: rgb(91, 26, 82);
/* oklch */ color: oklch(34.5% 0.118 333.8);
Tailwind
colors: {
  custom: {
    50: '#8c5d83',
    500: '#5b1a52',
    950: '#000000',
  },
}
SCSS
$custom: #5b1a52;
$custom-light: #8c5d83;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1a52",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 308.308,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34484,
    "c": 0.11824,
    "h": 333.8
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#5B1A52
secondary
#40914B
accent
#DF5E49
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1A52

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

Preview Lab → · Contrast checker → · Palette generator →

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