#5B0D52#5B0D52

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

Color values

HEX#5B0D52
RGBrgb(91, 13, 82)
HSLhsl(307, 75%, 20%)
HSVhsv(307, 86%, 36%)
CMYKcmyk(0%, 85.7%, 9.9%, 64.3%)
CIE-LABlab(20.52, 41.45, -21.72)
CIE-LCHlch(20.52, 46.79, 332.34°)
OKLaboklab(33.27% 0.1201 -0.0596)
OKLCHoklch(33.27% 0.134 333.6)
XYZxyz(5.9814, 3.1217, 8.2685)
Luminance0.0312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0D52 #0D5B16
analogous
#3D0D5B #5B0D52 #5B0D2B
triadic
#5B0D52 #525B0D #0D525B
tetradic
#5B0D52 #5B3D0D #0D5B16 #0D2B5B
square
#5B0D52 #5B3D0D #0D5B16 #0D2B5B
split-complementary
#5B0D52 #2B5B0D #0D5B3D
monochromatic
#1B0418 #250522 #5B0D52 #911582 #C61CB3

Accessibility & contrast

On white

12.93
#5B0D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0D52
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0D52#FFFFFF#000000##FFFFFF
##5B0D521.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092A54
Deuteranopia (green-blind)
#293550
Tritanopia (blue-blind)
#60162F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0d52;
/* rgb */ color: rgb(91, 13, 82);
/* oklch */ color: oklch(33.3% 0.134 333.6);
Tailwind
colors: {
  custom: {
    50: '#8c5783',
    500: '#5b0d52',
    950: '#000000',
  },
}
SCSS
$custom: #5b0d52;
$custom-light: #8c5783;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0d52",
  "rgb": {
    "r": 91,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 306.923,
    "s": 75,
    "l": 20.392
  },
  "oklch": {
    "l": 0.33274,
    "c": 0.13412,
    "h": 333.6
  },
  "luminance": 0.03121
}

Semantic roles & 50–950 ramp

primary
#5B0D52
secondary
#2F953A
accent
#F24C36
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0D52

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

Preview Lab → · Contrast checker → · Palette generator →

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