#5B1879#5B1879

#5B1879 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.157 H 312.6°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#5B1879
RGBrgb(91, 24, 121)
HSLhsl(281, 67%, 28%)
HSVhsv(281, 80%, 47%)
CMYKcmyk(24.8%, 80.2%, 0%, 52.5%)
CIE-LABlab(24.51, 45.36, -40.90)
CIE-LCHlch(24.51, 61.07, 317.96°)
OKLaboklab(36.96% 0.1064 -0.1157)
OKLCHoklch(36.96% 0.157 312.6)
XYZxyz(8.0916, 4.2581, 18.4811)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1879 #367918
analogous
#2A1879 #5B1879 #791866
triadic
#5B1879 #795B18 #18795B
tetradic
#5B1879 #792A18 #367918 #186679
square
#5B1879 #792A18 #367918 #186679
split-complementary
#5B1879 #667918 #18792A
monochromatic
#13051A #350E46 #5B1879 #8122AC #A535D7

Accessibility & contrast

On white

11.34
#5B1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5B1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1879
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1879#FFFFFF#000000##FFFFFF
##5B18791.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#093C77
Tritanopia (blue-blind)
#582F48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1879;
/* rgb */ color: rgb(91, 24, 121);
/* oklch */ color: oklch(37.0% 0.157 312.6);
Tailwind
colors: {
  custom: {
    50: '#8d5da0',
    500: '#5b1879',
    950: '#000000',
  },
}
SCSS
$custom: #5b1879;
$custom-light: #8d5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1879",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 281.443,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36958,
    "c": 0.15721,
    "h": 312.6
  },
  "luminance": 0.04258
}

Semantic roles & 50–950 ramp

primary
#5B1879
secondary
#61AE3F
accent
#EA3E73
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5B1879

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

Preview Lab → · Contrast checker → · Palette generator →

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