#5B1979#5B1979

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

Color values

HEX#5B1979
RGBrgb(91, 25, 121)
HSLhsl(281, 66%, 29%)
HSVhsv(281, 79%, 47%)
CMYKcmyk(24.8%, 79.3%, 0%, 52.5%)
CIE-LABlab(24.64, 44.97, -40.68)
CIE-LCHlch(24.64, 60.64, 317.87°)
OKLaboklab(37.05% 0.1055 -0.1151)
OKLCHoklch(37.05% 0.156 312.5)
XYZxyz(8.1126, 4.3001, 18.4881)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1979 #377919
analogous
#2B1979 #5B1979 #791967
triadic
#5B1979 #795B19 #19795B
tetradic
#5B1979 #792B19 #377919 #196779
square
#5B1979 #792B19 #377919 #196779
split-complementary
#5B1979 #677919 #19792B
monochromatic
#130519 #350F46 #5B1979 #8123AC #A437D6

Accessibility & contrast

On white

11.29
#5B1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1979
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1979#FFFFFF#000000##FFFFFF
##5B19791.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#0B3C77
Tritanopia (blue-blind)
#573048
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1979;
/* rgb */ color: rgb(91, 25, 121);
/* oklch */ color: oklch(37.1% 0.156 312.5);
Tailwind
colors: {
  custom: {
    50: '#8d5ea0',
    500: '#5b1979',
    950: '#000000',
  },
}
SCSS
$custom: #5b1979;
$custom-light: #8d5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1979",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 281.25,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37051,
    "c": 0.15611,
    "h": 312.5
  },
  "luminance": 0.043
}

Semantic roles & 50–950 ramp

primary
#5B1979
secondary
#62AE40
accent
#E93F74
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5B1979

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

Preview Lab → · Contrast checker → · Palette generator →

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