#5B1054#5B1054

#5B1054 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.133 H 332.4°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#5B1054
RGBrgb(91, 16, 84)
HSLhsl(306, 70%, 21%)
HSVhsv(306, 82%, 36%)
CMYKcmyk(0%, 82.4%, 7.7%, 64.3%)
CIE-LABlab(20.96, 40.86, -22.38)
CIE-LCHlch(20.96, 46.59, 331.29°)
OKLaboklab(33.63% 0.1175 -0.0616)
OKLCHoklch(33.63% 0.133 332.4)
XYZxyz(6.0999, 3.2353, 8.6890)
Luminance0.0323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1054 #105B17
analogous
#3C105B #5B1054 #5B102E
triadic
#5B1054 #545B10 #10545B
tetradic
#5B1054 #5B3C10 #105B17 #102E5B
square
#5B1054 #5B3C10 #105B17 #102E5B
split-complementary
#5B1054 #2E5B10 #105B3C
monochromatic
#1A0518 #270724 #5B1054 #8F1984 #C322B4

Accessibility & contrast

On white

12.75
#5B1054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5B1054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1054
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1054#FFFFFF#000000##FFFFFF
##5B10541.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2C56
Deuteranopia (green-blind)
#2A3652
Tritanopia (blue-blind)
#5F1931
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b1054;
/* rgb */ color: rgb(91, 16, 84);
/* oklch */ color: oklch(33.6% 0.133 332.4);
Tailwind
colors: {
  custom: {
    50: '#8c5884',
    500: '#5b1054',
    950: '#000000',
  },
}
SCSS
$custom: #5b1054;
$custom-light: #8c5884;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1054",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 305.6,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33625,
    "c": 0.13266,
    "h": 332.4
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#5B1054
secondary
#33943C
accent
#ED4C3B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1054

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

Preview Lab → · Contrast checker → · Palette generator →

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