#5B0E57#5B0E57

#5B0E57 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.7% C 0.137 H 330.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#5B0E57
RGBrgb(91, 14, 87)
HSLhsl(303, 73%, 21%)
HSVhsv(303, 85%, 36%)
CMYKcmyk(0%, 84.6%, 4.4%, 64.3%)
CIE-LABlab(20.93, 42.00, -24.44)
CIE-LCHlch(20.93, 48.60, 329.80°)
OKLaboklab(33.66% 0.1193 -0.0675)
OKLCHoklch(33.66% 0.137 330.5)
XYZxyz(6.1917, 3.2268, 9.3117)
Luminance0.0323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0E57 #0E5B12
analogous
#380E5B #5B0E57 #5B0E30
triadic
#5B0E57 #575B0E #0E575B
tetradic
#5B0E57 #5B380E #0E5B12 #0E305B
square
#5B0E57 #5B380E #0E5B12 #0E305B
split-complementary
#5B0E57 #305B0E #0E5B38
monochromatic
#1B0419 #260624 #5B0E57 #90168A #C51EBC

Accessibility & contrast

On white

12.76
#5B0E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0E57
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0E57#FFFFFF#000000##FFFFFF
##5B0E571.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032C59
Deuteranopia (green-blind)
#273655
Tritanopia (blue-blind)
#5F1932
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0e57;
/* rgb */ color: rgb(91, 14, 87);
/* oklch */ color: oklch(33.7% 0.137 330.5);
Tailwind
colors: {
  custom: {
    50: '#8c5887',
    500: '#5b0e57',
    950: '#000000',
  },
}
SCSS
$custom: #5b0e57;
$custom-light: #8c5887;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0e57",
  "rgb": {
    "r": 91,
    "g": 14,
    "b": 87
  },
  "hsl": {
    "h": 303.117,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33661,
    "c": 0.13712,
    "h": 330.5
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#5B0E57
secondary
#309535
accent
#F04138
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B0E57

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

Preview Lab → · Contrast checker → · Palette generator →

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