#5B1A79#5B1A79

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

Color values

HEX#5B1A79
RGBrgb(91, 26, 121)
HSLhsl(281, 65%, 29%)
HSVhsv(281, 79%, 47%)
CMYKcmyk(24.8%, 78.5%, 0%, 52.5%)
CIE-LABlab(24.78, 44.58, -40.46)
CIE-LCHlch(24.78, 60.20, 317.78°)
OKLaboklab(37.15% 0.1045 -0.1144)
OKLCHoklch(37.15% 0.155 312.4)
XYZxyz(8.1343, 4.3436, 18.4954)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1A79 #38791A
analogous
#2C1A79 #5B1A79 #791A68
triadic
#5B1A79 #795B1A #1A795B
tetradic
#5B1A79 #792C1A #38791A #1A6879
square
#5B1A79 #792C1A #38791A #1A6879
split-complementary
#5B1A79 #68791A #1A792C
monochromatic
#130519 #350F47 #5B1A79 #8125AB #A339D4

Accessibility & contrast

On white

11.24
#5B1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B1A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1A79
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1A79#FFFFFF#000000##FFFFFF
##5B1A791.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#0C3C77
Tritanopia (blue-blind)
#573049
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1a79;
/* rgb */ color: rgb(91, 26, 121);
/* oklch */ color: oklch(37.1% 0.155 312.4);
Tailwind
colors: {
  custom: {
    50: '#8d5ea0',
    500: '#5b1a79',
    950: '#000000',
  },
}
SCSS
$custom: #5b1a79;
$custom-light: #8d5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1a79",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 281.053,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37148,
    "c": 0.15499,
    "h": 312.4
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#5B1A79
secondary
#64AD41
accent
#E84075
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050F
muted
#7D797E

Preview Lab

Preview with #5B1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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