#5B0D50#5B0D50

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

Color values

HEX#5B0D50
RGBrgb(91, 13, 80)
HSLhsl(308, 75%, 20%)
HSVhsv(308, 86%, 36%)
CMYKcmyk(0%, 85.7%, 12.1%, 64.3%)
CIE-LABlab(20.41, 41.12, -20.55)
CIE-LCHlch(20.41, 45.97, 333.44°)
OKLaboklab(33.15% 0.12 -0.0563)
OKLCHoklch(33.15% 0.133 334.9)
XYZxyz(5.9064, 3.0917, 7.8736)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0D50 #0D5B18
analogous
#3F0D5B #5B0D50 #5B0D29
triadic
#5B0D50 #505B0D #0D505B
tetradic
#5B0D50 #5B3F0D #0D5B18 #0D295B
square
#5B0D50 #5B3F0D #0D5B18 #0D295B
split-complementary
#5B0D50 #295B0D #0D5B3F
monochromatic
#1B0418 #250521 #5B0D50 #91157F #C61CAE

Accessibility & contrast

On white

12.98
#5B0D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0D50
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0D50#FFFFFF#000000##FFFFFF
##5B0D501.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2A52
Deuteranopia (green-blind)
#2A354E
Tritanopia (blue-blind)
#60152E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0d50;
/* rgb */ color: rgb(91, 13, 80);
/* oklch */ color: oklch(33.2% 0.133 334.9);
Tailwind
colors: {
  custom: {
    50: '#8d5781',
    500: '#5b0d50',
    950: '#000000',
  },
}
SCSS
$custom: #5b0d50;
$custom-light: #8d5781;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0d50",
  "rgb": {
    "r": 91,
    "g": 13,
    "b": 80
  },
  "hsl": {
    "h": 308.462,
    "s": 75,
    "l": 20.392
  },
  "oklch": {
    "l": 0.33152,
    "c": 0.13257,
    "h": 334.9
  },
  "luminance": 0.03091
}

Semantic roles & 50–950 ramp

primary
#5B0D50
secondary
#2F953D
accent
#F25136
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0D50

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

Preview Lab → · Contrast checker → · Palette generator →

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