#5B0D51#5B0D51

#5B0D51 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.133 H 334.2°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#5B0D51
RGBrgb(91, 13, 81)
HSLhsl(308, 75%, 20%)
HSVhsv(308, 86%, 36%)
CMYKcmyk(0%, 85.7%, 11%, 64.3%)
CIE-LABlab(20.47, 41.28, -21.14)
CIE-LCHlch(20.47, 46.38, 332.89°)
OKLaboklab(33.21% 0.1201 -0.058)
OKLCHoklch(33.21% 0.133 334.2)
XYZxyz(5.9436, 3.1066, 8.0696)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0D51 #0D5B17
analogous
#3E0D5B #5B0D51 #5B0D2A
triadic
#5B0D51 #515B0D #0D515B
tetradic
#5B0D51 #5B3E0D #0D5B17 #0D2A5B
square
#5B0D51 #5B3E0D #0D5B17 #0D2A5B
split-complementary
#5B0D51 #2A5B0D #0D5B3E
monochromatic
#1B0418 #250521 #5B0D51 #911581 #C61CB0

Accessibility & contrast

On white

12.95
#5B0D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5B0D51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0D51
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0D51#FFFFFF#000000##FFFFFF
##5B0D511.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2A53
Deuteranopia (green-blind)
#2A354F
Tritanopia (blue-blind)
#60152F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0d51;
/* rgb */ color: rgb(91, 13, 81);
/* oklch */ color: oklch(33.2% 0.133 334.2);
Tailwind
colors: {
  custom: {
    50: '#8c5782',
    500: '#5b0d51',
    950: '#000000',
  },
}
SCSS
$custom: #5b0d51;
$custom-light: #8c5782;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0d51",
  "rgb": {
    "r": 91,
    "g": 13,
    "b": 81
  },
  "hsl": {
    "h": 307.692,
    "s": 75,
    "l": 20.392
  },
  "oklch": {
    "l": 0.33213,
    "c": 0.13335,
    "h": 334.2
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#5B0D51
secondary
#2F953C
accent
#F24E36
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0D51

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

Preview Lab → · Contrast checker → · Palette generator →

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