#5B1D79#5B1D79

#5B1D79 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.5% C 0.151 H 312.1°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#5B1D79
RGBrgb(91, 29, 121)
HSLhsl(280, 61%, 29%)
HSVhsv(280, 76%, 47%)
CMYKcmyk(24.8%, 76%, 0%, 52.5%)
CIE-LABlab(25.21, 43.34, -39.76)
CIE-LCHlch(25.21, 58.82, 317.47°)
OKLaboklab(37.45% 0.1015 -0.1124)
OKLCHoklch(37.45% 0.151 312.1)
XYZxyz(8.2043, 4.4836, 18.5187)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1D79 #3B791D
analogous
#2D1D79 #5B1D79 #791D69
triadic
#5B1D79 #795B1D #1D795B
tetradic
#5B1D79 #792D1D #3B791D #1D6979
square
#5B1D79 #792D1D #3B791D #1D6979
split-complementary
#5B1D79 #69791D #1D792D
monochromatic
#130619 #361148 #5B1D79 #8029AA #A23FD1

Accessibility & contrast

On white

11.07
#5B1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5B1D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1D79
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1D79#FFFFFF#000000##FFFFFF
##5B1D791.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#113D77
Tritanopia (blue-blind)
#573249
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1d79;
/* rgb */ color: rgb(91, 29, 121);
/* oklch */ color: oklch(37.5% 0.151 312.1);
Tailwind
colors: {
  custom: {
    50: '#8d60a0',
    500: '#5b1d79',
    950: '#000000',
  },
}
SCSS
$custom: #5b1d79;
$custom-light: #8d60a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1d79",
  "rgb": {
    "r": 91,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 280.435,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37454,
    "c": 0.15146,
    "h": 312.1
  },
  "luminance": 0.04483
}

Semantic roles & 50–950 ramp

primary
#5B1D79
secondary
#67AD45
accent
#E44378
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0D050F
muted
#7D797E

Preview Lab

Preview with #5B1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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