#5B1A67#5B1A67

#5B1A67 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.137 H 321.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#5B1A67
RGBrgb(91, 26, 103)
HSLhsl(291, 60%, 25%)
HSVhsv(291, 75%, 40%)
CMYKcmyk(11.7%, 74.8%, 0%, 59.6%)
CIE-LABlab(23.48, 40.71, -30.95)
CIE-LCHlch(23.48, 51.14, 322.76°)
OKLaboklab(35.82% 0.1067 -0.0866)
OKLCHoklch(35.82% 0.137 321)
XYZxyz(7.1317, 3.9426, 13.2147)
Luminance0.0394 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1A67 #26671A
analogous
#341A67 #5B1A67 #671A4D
triadic
#5B1A67 #675B1A #1A675B
tetradic
#5B1A67 #67341A #26671A #1A4D67
square
#5B1A67 #67341A #26671A #1A4D67
split-complementary
#5B1A67 #4D671A #1A6734
monochromatic
#160618 #300E36 #5B1A67 #862698 #B133C9

Accessibility & contrast

On white

11.74
#5B1A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5B1A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1A67
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1A67#FFFFFF#000000##FFFFFF
##5B1A671.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#223A65
Tritanopia (blue-blind)
#5C283E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1a67;
/* rgb */ color: rgb(91, 26, 103);
/* oklch */ color: oklch(35.8% 0.137 321.0);
Tailwind
colors: {
  custom: {
    50: '#8c5d93',
    500: '#5b1a67',
    950: '#000000',
  },
}
SCSS
$custom: #5b1a67;
$custom-light: #8c5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1a67",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 103
  },
  "hsl": {
    "h": 290.649,
    "s": 59.69,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35815,
    "c": 0.13743,
    "h": 321
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#5B1A67
secondary
#4F9D40
accent
#E3455E
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5B1A67

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

Preview Lab → · Contrast checker → · Palette generator →

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