#5B1561#5B1561

#5B1561 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.138 H 324.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#5B1561
RGBrgb(91, 21, 97)
HSLhsl(295, 64%, 23%)
HSVhsv(295, 78%, 38%)
CMYKcmyk(6.2%, 78.4%, 0%, 62%)
CIE-LABlab(22.39, 41.49, -28.77)
CIE-LCHlch(22.39, 50.49, 325.27°)
OKLaboklab(34.91% 0.1124 -0.0802)
OKLCHoklch(34.91% 0.138 324.5)
XYZxyz(6.7400, 3.6240, 11.6514)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1561 #1B6115
analogous
#351561 #5B1561 #611541
triadic
#5B1561 #615B15 #15615B
tetradic
#5B1561 #613515 #1B6115 #154161
square
#5B1561 #613515 #1B6115 #154161
split-complementary
#5B1561 #416115 #156135
monochromatic
#180519 #2C0A2F #5B1561 #8A2093 #B92BC6

Accessibility & contrast

On white

12.18
#5B1561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B1561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1561
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1561#FFFFFF#000000##FFFFFF
##5B15611.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003063
Deuteranopia (green-blind)
#24385F
Tritanopia (blue-blind)
#5D233A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1561;
/* rgb */ color: rgb(91, 21, 97);
/* oklch */ color: oklch(34.9% 0.138 324.5);
Tailwind
colors: {
  custom: {
    50: '#8c5b8e',
    500: '#5b1561',
    950: '#000000',
  },
}
SCSS
$custom: #5b1561;
$custom-light: #8c5b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1561",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 295.263,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34906,
    "c": 0.13809,
    "h": 324.5
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#5B1561
secondary
#41983A
accent
#E7404E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1561

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

Preview Lab → · Contrast checker → · Palette generator →

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