#5B0E51#5B0E51

#5B0E51 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.3% C 0.132 H 334.3°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#5B0E51
RGBrgb(91, 14, 81)
HSLhsl(308, 73%, 21%)
HSVhsv(308, 85%, 36%)
CMYKcmyk(0%, 84.6%, 11%, 64.3%)
CIE-LABlab(20.57, 40.98, -20.98)
CIE-LCHlch(20.57, 46.04, 332.90°)
OKLaboklab(33.29% 0.1192 -0.0575)
OKLCHoklch(33.29% 0.132 334.3)
XYZxyz(5.9567, 3.1328, 8.0740)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0E51 #0E5B18
analogous
#3E0E5B #5B0E51 #5B0E2A
triadic
#5B0E51 #515B0E #0E515B
tetradic
#5B0E51 #5B3E0E #0E5B18 #0E2A5B
square
#5B0E51 #5B3E0E #0E5B18 #0E2A5B
split-complementary
#5B0E51 #2A5B0E #0E5B3E
monochromatic
#1B0418 #260622 #5B0E51 #901680 #C51EAF

Accessibility & contrast

On white

12.91
#5B0E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5B0E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0E51
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0E51#FFFFFF#000000##FFFFFF
##5B0E511.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2A53
Deuteranopia (green-blind)
#2A354F
Tritanopia (blue-blind)
#60162F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0e51;
/* rgb */ color: rgb(91, 14, 81);
/* oklch */ color: oklch(33.3% 0.132 334.3);
Tailwind
colors: {
  custom: {
    50: '#8c5782',
    500: '#5b0e51',
    950: '#000000',
  },
}
SCSS
$custom: #5b0e51;
$custom-light: #8c5782;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0e51",
  "rgb": {
    "r": 91,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 307.792,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33286,
    "c": 0.13236,
    "h": 334.3
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

primary
#5B0E51
secondary
#30953D
accent
#F05038
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0E51

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

Preview Lab → · Contrast checker → · Palette generator →

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