#5B1352#5B1352

#5B1352 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.128 H 333.7°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#5B1352
RGBrgb(91, 19, 82)
HSLhsl(308, 65%, 22%)
HSVhsv(308, 79%, 36%)
CMYKcmyk(0%, 79.1%, 9.9%, 64.3%)
CIE-LABlab(21.21, 39.49, -20.65)
CIE-LCHlch(21.21, 44.56, 332.40°)
OKLaboklab(33.76% 0.1144 -0.0566)
OKLCHoklch(33.76% 0.128 333.7)
XYZxyz(6.0703, 3.2996, 8.2982)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1352 #135B1C
analogous
#40135B #5B1352 #5B132E
triadic
#5B1352 #525B13 #13525B
tetradic
#5B1352 #5B4013 #135B1C #132E5B
square
#5B1352 #5B4013 #135B1C #132E5B
split-complementary
#5B1352 #2E5B13 #135B40
monochromatic
#190517 #280824 #5B1352 #8E1E80 #C028AD

Accessibility & contrast

On white

12.65
#5B1352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5B1352 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1352
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1352#FFFFFF#000000##FFFFFF
##5B13521.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112C54
Deuteranopia (green-blind)
#2C3750
Tritanopia (blue-blind)
#601A31
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1352;
/* rgb */ color: rgb(91, 19, 82);
/* oklch */ color: oklch(33.8% 0.128 333.7);
Tailwind
colors: {
  custom: {
    50: '#8c5983',
    500: '#5b1352',
    950: '#000000',
  },
}
SCSS
$custom: #5b1352;
$custom-light: #8c5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1352",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 307.5,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33762,
    "c": 0.12762,
    "h": 333.7
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#5B1352
secondary
#379342
accent
#E8553F
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1352

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

Preview Lab → · Contrast checker → · Palette generator →

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