#5B0D54#5B0D54

#5B0D54 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.136 H 332.3°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#5B0D54
RGBrgb(91, 13, 84)
HSLhsl(305, 75%, 20%)
HSVhsv(305, 86%, 36%)
CMYKcmyk(0%, 85.7%, 7.7%, 64.3%)
CIE-LABlab(20.64, 41.78, -22.88)
CIE-LCHlch(20.64, 47.63, 331.29°)
OKLaboklab(33.4% 0.1202 -0.063)
OKLCHoklch(33.4% 0.136 332.3)
XYZxyz(6.0586, 3.1526, 8.6752)
Luminance0.0315 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0D54 #0D5B14
analogous
#3B0D5B #5B0D54 #5B0D2D
triadic
#5B0D54 #545B0D #0D545B
tetradic
#5B0D54 #5B3B0D #0D5B14 #0D2D5B
square
#5B0D54 #5B3B0D #0D5B14 #0D2D5B
split-complementary
#5B0D54 #2D5B0D #0D5B3B
monochromatic
#1B0419 #250523 #5B0D54 #911585 #C61CB7

Accessibility & contrast

On white

12.88
#5B0D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0D54
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0D54#FFFFFF#000000##FFFFFF
##5B0D541.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072B56
Deuteranopia (green-blind)
#283552
Tritanopia (blue-blind)
#5F1731
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0d54;
/* rgb */ color: rgb(91, 13, 84);
/* oklch */ color: oklch(33.4% 0.136 332.3);
Tailwind
colors: {
  custom: {
    50: '#8c5784',
    500: '#5b0d54',
    950: '#000000',
  },
}
SCSS
$custom: #5b0d54;
$custom-light: #8c5784;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0d54",
  "rgb": {
    "r": 91,
    "g": 13,
    "b": 84
  },
  "hsl": {
    "h": 305.385,
    "s": 75,
    "l": 20.392
  },
  "oklch": {
    "l": 0.33398,
    "c": 0.13569,
    "h": 332.3
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#5B0D54
secondary
#2F9538
accent
#F24736
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B0D54

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

Preview Lab → · Contrast checker → · Palette generator →

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