#5B1978#5B1978

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

Color values

HEX#5B1978
RGBrgb(91, 25, 120)
HSLhsl(282, 66%, 28%)
HSVhsv(282, 79%, 47%)
CMYKcmyk(24.2%, 79.2%, 0%, 52.9%)
CIE-LABlab(24.56, 44.75, -40.17)
CIE-LCHlch(24.56, 60.14, 318.09°)
OKLaboklab(36.97% 0.1057 -0.1136)
OKLCHoklch(36.97% 0.155 312.9)
XYZxyz(8.0516, 4.2757, 18.1668)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1978 #367819
analogous
#2B1978 #5B1978 #781965
triadic
#5B1978 #785B19 #19785B
tetradic
#5B1978 #782B19 #367819 #196578
square
#5B1978 #782B19 #367819 #196578
split-complementary
#5B1978 #657819 #19782B
monochromatic
#130519 #350E45 #5B1978 #8124AB #A536D5

Accessibility & contrast

On white

11.32
#5B1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5B1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1978
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1978#FFFFFF#000000##FFFFFF
##5B19781.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#0D3C76
Tritanopia (blue-blind)
#582F48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1978;
/* rgb */ color: rgb(91, 25, 120);
/* oklch */ color: oklch(37.0% 0.155 312.9);
Tailwind
colors: {
  custom: {
    50: '#8d5ea0',
    500: '#5b1978',
    950: '#000000',
  },
}
SCSS
$custom: #5b1978;
$custom-light: #8d5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1978",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 281.684,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36973,
    "c": 0.15514,
    "h": 312.9
  },
  "luminance": 0.04275
}

Semantic roles & 50–950 ramp

primary
#5B1978
secondary
#61AD40
accent
#E83F73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050F
muted
#7D797E

Preview Lab

Preview with #5B1978

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

Preview Lab → · Contrast checker → · Palette generator →

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