#5B1052#5B1052

#5B1052 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.131 H 333.6°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#5B1052
RGBrgb(91, 16, 82)
HSLhsl(307, 70%, 21%)
HSVhsv(307, 82%, 36%)
CMYKcmyk(0%, 82.4%, 9.9%, 64.3%)
CIE-LABlab(20.84, 40.52, -21.22)
CIE-LCHlch(20.84, 45.74, 332.37°)
OKLaboklab(33.5% 0.1174 -0.0582)
OKLCHoklch(33.5% 0.131 333.6)
XYZxyz(6.0227, 3.2045, 8.2823)
Luminance0.0320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1052 #105B19
analogous
#3E105B #5B1052 #5B102C
triadic
#5B1052 #525B10 #10525B
tetradic
#5B1052 #5B3E10 #105B19 #102C5B
square
#5B1052 #5B3E10 #105B19 #102C5B
split-complementary
#5B1052 #2C5B10 #105B3E
monochromatic
#1A0517 #270723 #5B1052 #8F1981 #C322B0

Accessibility & contrast

On white

12.80
#5B1052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5B1052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1052
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1052#FFFFFF#000000##FFFFFF
##5B10521.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B54
Deuteranopia (green-blind)
#2A3650
Tritanopia (blue-blind)
#601830
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b1052;
/* rgb */ color: rgb(91, 16, 82);
/* oklch */ color: oklch(33.5% 0.131 333.6);
Tailwind
colors: {
  custom: {
    50: '#8c5883',
    500: '#5b1052',
    950: '#000000',
  },
}
SCSS
$custom: #5b1052;
$custom-light: #8c5883;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1052",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 307.2,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33503,
    "c": 0.13106,
    "h": 333.6
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#5B1052
secondary
#33943E
accent
#ED503B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1052

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

Preview Lab → · Contrast checker → · Palette generator →

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