#5B0E50#5B0E50

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

Color values

HEX#5B0E50
RGBrgb(91, 14, 80)
HSLhsl(309, 73%, 21%)
HSVhsv(309, 85%, 36%)
CMYKcmyk(0%, 84.6%, 12.1%, 64.3%)
CIE-LABlab(20.51, 40.82, -20.39)
CIE-LCHlch(20.51, 45.63, 333.46°)
OKLaboklab(33.23% 0.1192 -0.0558)
OKLCHoklch(33.23% 0.132 334.9)
XYZxyz(5.9195, 3.1180, 7.8779)
Luminance0.0312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0E50 #0E5B19
analogous
#3F0E5B #5B0E50 #5B0E2A
triadic
#5B0E50 #505B0E #0E505B
tetradic
#5B0E50 #5B3F0E #0E5B19 #0E2A5B
square
#5B0E50 #5B3F0E #0E5B19 #0E2A5B
split-complementary
#5B0E50 #2A5B0E #0E5B3F
monochromatic
#1B0417 #260621 #5B0E50 #90167F #C51EAD

Accessibility & contrast

On white

12.94
#5B0E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0E50
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0E50#FFFFFF#000000##FFFFFF
##5B0E501.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b0e50;
/* rgb */ color: rgb(91, 14, 80);
/* oklch */ color: oklch(33.2% 0.132 334.9);
Tailwind
colors: {
  custom: {
    50: '#8c5781',
    500: '#5b0e50',
    950: '#000000',
  },
}
SCSS
$custom: #5b0e50;
$custom-light: #8c5781;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0e50",
  "rgb": {
    "r": 91,
    "g": 14,
    "b": 80
  },
  "hsl": {
    "h": 308.571,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33225,
    "c": 0.13158,
    "h": 334.9
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#5B0E50
secondary
#30953E
accent
#F05238
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0E50

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

Preview Lab → · Contrast checker → · Palette generator →

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