#5B1059#5B1059

#5B1059 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.137 H 329.3°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#5B1059
RGBrgb(91, 16, 89)
HSLhsl(302, 70%, 21%)
HSVhsv(302, 82%, 36%)
CMYKcmyk(0%, 82.4%, 2.2%, 64.3%)
CIE-LABlab(21.27, 41.74, -25.24)
CIE-LCHlch(21.27, 48.78, 328.83°)
OKLaboklab(33.94% 0.1176 -0.0699)
OKLCHoklch(33.94% 0.137 329.3)
XYZxyz(6.3028, 3.3165, 9.7574)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1059 #105B12
analogous
#37105B #5B1059 #5B1033
triadic
#5B1059 #595B10 #10595B
tetradic
#5B1059 #5B3710 #105B12 #10335B
square
#5B1059 #5B3710 #105B12 #10335B
split-complementary
#5B1059 #335B10 #105B37
monochromatic
#1A0519 #270726 #5B1059 #8F198C #C322BF

Accessibility & contrast

On white

12.63
#5B1059 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5B1059 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1059
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1059#FFFFFF#000000##FFFFFF
##5B10591.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032D5B
Deuteranopia (green-blind)
#273657
Tritanopia (blue-blind)
#5E1C34
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1059;
/* rgb */ color: rgb(91, 16, 89);
/* oklch */ color: oklch(33.9% 0.137 329.3);
Tailwind
colors: {
  custom: {
    50: '#8c5988',
    500: '#5b1059',
    950: '#000000',
  },
}
SCSS
$custom: #5b1059;
$custom-light: #8c5988;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1059",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 89
  },
  "hsl": {
    "h": 301.6,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33943,
    "c": 0.13674,
    "h": 329.3
  },
  "luminance": 0.03316
}

Semantic roles & 50–950 ramp

primary
#5B1059
secondary
#339435
accent
#ED403B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1059

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

Preview Lab → · Contrast checker → · Palette generator →

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