#5B1050#5B1050

#5B1050 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.129 H 334.9°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#5B1050
RGBrgb(91, 16, 80)
HSLhsl(309, 70%, 21%)
HSVhsv(309, 82%, 36%)
CMYKcmyk(0%, 82.4%, 12.1%, 64.3%)
CIE-LABlab(20.73, 40.19, -20.04)
CIE-LCHlch(20.73, 44.91, 333.49°)
OKLaboklab(33.38% 0.1173 -0.0548)
OKLCHoklch(33.38% 0.129 334.9)
XYZxyz(5.9477, 3.1745, 7.8873)
Luminance0.0317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1050 #105B1B
analogous
#40105B #5B1050 #5B102A
triadic
#5B1050 #505B10 #10505B
tetradic
#5B1050 #5B4010 #105B1B #102A5B
square
#5B1050 #5B4010 #105B1B #102A5B
split-complementary
#5B1050 #2A5B10 #105B40
monochromatic
#1A0517 #270722 #5B1050 #8F197E #C322AC

Accessibility & contrast

On white

12.85
#5B1050 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5B1050 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1050
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1050#FFFFFF#000000##FFFFFF
##5B10501.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2B52
Deuteranopia (green-blind)
#2B364E
Tritanopia (blue-blind)
#60172F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b1050;
/* rgb */ color: rgb(91, 16, 80);
/* oklch */ color: oklch(33.4% 0.129 334.9);
Tailwind
colors: {
  custom: {
    50: '#8c5881',
    500: '#5b1050',
    950: '#000000',
  },
}
SCSS
$custom: #5b1050;
$custom-light: #8c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1050",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 80
  },
  "hsl": {
    "h": 308.8,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33383,
    "c": 0.12948,
    "h": 334.9
  },
  "luminance": 0.03174
}

Semantic roles & 50–950 ramp

primary
#5B1050
secondary
#339441
accent
#ED553B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1050

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

Preview Lab → · Contrast checker → · Palette generator →

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