#5B0E56#5B0E56

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

Color values

HEX#5B0E56
RGBrgb(91, 14, 86)
HSLhsl(304, 73%, 21%)
HSVhsv(304, 85%, 36%)
CMYKcmyk(0%, 84.6%, 5.5%, 64.3%)
CIE-LABlab(20.87, 41.83, -23.87)
CIE-LCHlch(20.87, 48.16, 330.29°)
OKLaboklab(33.6% 0.1194 -0.0659)
OKLCHoklch(33.6% 0.136 331.1)
XYZxyz(6.1511, 3.2106, 9.0980)
Luminance0.0321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0E56 #0E5B13
analogous
#390E5B #5B0E56 #5B0E2F
triadic
#5B0E56 #565B0E #0E565B
tetradic
#5B0E56 #5B390E #0E5B13 #0E2F5B
square
#5B0E56 #5B390E #0E5B13 #0E2F5B
split-complementary
#5B0E56 #2F5B0E #0E5B39
monochromatic
#1B0419 #260624 #5B0E56 #901688 #C51EBA

Accessibility & contrast

On white

12.79
#5B0E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0E56
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0E56#FFFFFF#000000##FFFFFF
##5B0E561.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052B58
Deuteranopia (green-blind)
#283654
Tritanopia (blue-blind)
#5F1932
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0e56;
/* rgb */ color: rgb(91, 14, 86);
/* oklch */ color: oklch(33.6% 0.136 331.1);
Tailwind
colors: {
  custom: {
    50: '#8c5886',
    500: '#5b0e56',
    950: '#000000',
  },
}
SCSS
$custom: #5b0e56;
$custom-light: #8c5886;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0e56",
  "rgb": {
    "r": 91,
    "g": 14,
    "b": 86
  },
  "hsl": {
    "h": 303.896,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33597,
    "c": 0.13632,
    "h": 331.1
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#5B0E56
secondary
#309536
accent
#F04438
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B0E56

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

Preview Lab → · Contrast checker → · Palette generator →

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