#5B1058#5B1058

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

Color values

HEX#5B1058
RGBrgb(91, 16, 88)
HSLhsl(302, 70%, 21%)
HSVhsv(302, 82%, 36%)
CMYKcmyk(0%, 82.4%, 3.3%, 64.3%)
CIE-LABlab(21.21, 41.56, -24.67)
CIE-LCHlch(21.21, 48.33, 329.30°)
OKLaboklab(33.88% 0.1176 -0.0682)
OKLCHoklch(33.88% 0.136 329.9)
XYZxyz(6.2611, 3.2998, 9.5378)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1058 #105B13
analogous
#38105B #5B1058 #5B1032
triadic
#5B1058 #585B10 #10585B
tetradic
#5B1058 #5B3810 #105B13 #10325B
square
#5B1058 #5B3810 #105B13 #10325B
split-complementary
#5B1058 #325B10 #105B38
monochromatic
#1A0519 #270726 #5B1058 #8F198A #C322BD

Accessibility & contrast

On white

12.65
#5B1058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1058
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1058#FFFFFF#000000##FFFFFF
##5B10581.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052D5A
Deuteranopia (green-blind)
#273656
Tritanopia (blue-blind)
#5F1B34
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1058;
/* rgb */ color: rgb(91, 16, 88);
/* oklch */ color: oklch(33.9% 0.136 329.9);
Tailwind
colors: {
  custom: {
    50: '#8c5987',
    500: '#5b1058',
    950: '#000000',
  },
}
SCSS
$custom: #5b1058;
$custom-light: #8c5987;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1058",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 302.4,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33879,
    "c": 0.13592,
    "h": 329.9
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#5B1058
secondary
#339437
accent
#ED423B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1058

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

Preview Lab → · Contrast checker → · Palette generator →

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