#5B1971#5B1971

#5B1971 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.148 H 316.1°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#5B1971
RGBrgb(91, 25, 113)
HSLhsl(285, 64%, 27%)
HSVhsv(285, 78%, 44%)
CMYKcmyk(19.5%, 77.9%, 0%, 55.7%)
CIE-LABlab(24.04, 43.23, -36.53)
CIE-LCHlch(24.04, 56.60, 319.80°)
OKLaboklab(36.44% 0.1068 -0.1029)
OKLCHoklch(36.44% 0.148 316.1)
XYZxyz(7.6422, 4.1120, 16.0107)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1971 #2F7119
analogous
#2F1971 #5B1971 #71195B
triadic
#5B1971 #715B19 #19715B
tetradic
#5B1971 #712F19 #2F7119 #195B71
square
#5B1971 #712F19 #2F7119 #195B71
split-complementary
#5B1971 #5B7119 #19712F
monochromatic
#140619 #330E3F #5B1971 #8324A3 #AA33D2

Accessibility & contrast

On white

11.52
#5B1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5B1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1971
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1971#FFFFFF#000000##FFFFFF
##5B19711.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#183B6F
Tritanopia (blue-blind)
#5A2C44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1971;
/* rgb */ color: rgb(91, 25, 113);
/* oklch */ color: oklch(36.4% 0.148 316.1);
Tailwind
colors: {
  custom: {
    50: '#8d5d9a',
    500: '#5b1971',
    950: '#000000',
  },
}
SCSS
$custom: #5b1971;
$custom-light: #8d5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1971",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 285,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36435,
    "c": 0.14832,
    "h": 316.1
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#5B1971
secondary
#59A640
accent
#E7416A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5B1971

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

Preview Lab → · Contrast checker → · Palette generator →

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