#5B1471#5B1471

#5B1471 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.0% C 0.154 H 316.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#5B1471
RGBrgb(91, 20, 113)
HSLhsl(286, 70%, 26%)
HSVhsv(286, 82%, 44%)
CMYKcmyk(19.5%, 82.3%, 0%, 55.7%)
CIE-LABlab(23.40, 45.08, -37.57)
CIE-LCHlch(23.40, 58.68, 320.19°)
OKLaboklab(35.98% 0.1115 -0.1059)
OKLCHoklch(35.98% 0.154 316.5)
XYZxyz(7.5447, 3.9170, 15.9782)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1471 #2A7114
analogous
#2C1471 #5B1471 #711458
triadic
#5B1471 #715B14 #14715B
tetradic
#5B1471 #712C14 #2A7114 #145871
square
#5B1471 #712C14 #2A7114 #145871
split-complementary
#5B1471 #587114 #14712C
monochromatic
#15051A #310B3D #5B1471 #851DA5 #AF27D9

Accessibility & contrast

On white

11.78
#5B1471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5B1471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1471
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1471#FFFFFF#000000##FFFFFF
##5B14711.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#143A6F
Tritanopia (blue-blind)
#5A2A43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1471;
/* rgb */ color: rgb(91, 20, 113);
/* oklch */ color: oklch(36.0% 0.154 316.5);
Tailwind
colors: {
  custom: {
    50: '#8d5b9a',
    500: '#5b1471',
    950: '#000000',
  },
}
SCSS
$custom: #5b1471;
$custom-light: #8d5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1471",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 285.806,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35981,
    "c": 0.1538,
    "h": 316.5
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#5B1471
secondary
#53A739
accent
#ED3B65
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1471

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

Preview Lab → · Contrast checker → · Palette generator →

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