#5B0E52#5B0E52

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

Color values

HEX#5B0E52
RGBrgb(91, 14, 82)
HSLhsl(307, 73%, 21%)
HSVhsv(307, 85%, 36%)
CMYKcmyk(0%, 84.6%, 9.9%, 64.3%)
CIE-LABlab(20.63, 41.15, -21.56)
CIE-LCHlch(20.63, 46.46, 332.35°)
OKLaboklab(33.35% 0.1193 -0.0592)
OKLCHoklch(33.35% 0.133 333.6)
XYZxyz(5.9945, 3.1479, 8.2729)
Luminance0.0315 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0E52 #0E5B17
analogous
#3D0E5B #5B0E52 #5B0E2B
triadic
#5B0E52 #525B0E #0E525B
tetradic
#5B0E52 #5B3D0E #0E5B17 #0E2B5B
square
#5B0E52 #5B3D0E #0E5B17 #0E2B5B
split-complementary
#5B0E52 #2B5B0E #0E5B3D
monochromatic
#1B0418 #260622 #5B0E52 #901682 #C51EB2

Accessibility & contrast

On white

12.89
#5B0E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0E52
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0E52#FFFFFF#000000##FFFFFF
##5B0E521.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2B54
Deuteranopia (green-blind)
#2A3650
Tritanopia (blue-blind)
#601730
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0e52;
/* rgb */ color: rgb(91, 14, 82);
/* oklch */ color: oklch(33.3% 0.133 333.6);
Tailwind
colors: {
  custom: {
    50: '#8c5883',
    500: '#5b0e52',
    950: '#000000',
  },
}
SCSS
$custom: #5b0e52;
$custom-light: #8c5883;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0e52",
  "rgb": {
    "r": 91,
    "g": 14,
    "b": 82
  },
  "hsl": {
    "h": 307.013,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33347,
    "c": 0.13314,
    "h": 333.6
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#5B0E52
secondary
#30953C
accent
#F04D38
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0E52

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

Preview Lab → · Contrast checker → · Palette generator →

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