#5B1477#5B1477

#5B1477 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.159 H 313.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#5B1477
RGBrgb(91, 20, 119)
HSLhsl(283, 71%, 27%)
HSVhsv(283, 83%, 47%)
CMYKcmyk(23.5%, 83.2%, 0%, 53.3%)
CIE-LABlab(23.86, 46.35, -40.67)
CIE-LCHlch(23.86, 61.66, 318.73°)
OKLaboklab(36.45% 0.1103 -0.115)
OKLCHoklch(36.45% 0.159 313.8)
XYZxyz(7.8937, 4.0566, 17.8164)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1477 #307714
analogous
#291477 #5B1477 #771462
triadic
#5B1477 #775B14 #14775B
tetradic
#5B1477 #772914 #307714 #146277
square
#5B1477 #772914 #307714 #146277
split-complementary
#5B1477 #627714 #147729
monochromatic
#14041A #330B43 #5B1477 #831DAB #A92ADB

Accessibility & contrast

On white

11.59
#5B1477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5B1477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1477
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1477#FFFFFF#000000##FFFFFF
##5B14771.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#083A75
Tritanopia (blue-blind)
#582C46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1477;
/* rgb */ color: rgb(91, 20, 119);
/* oklch */ color: oklch(36.5% 0.159 313.8);
Tailwind
colors: {
  custom: {
    50: '#8d5c9f',
    500: '#5b1477',
    950: '#000000',
  },
}
SCSS
$custom: #5b1477;
$custom-light: #8d5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1477",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 283.03,
    "s": 71.223,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36452,
    "c": 0.15938,
    "h": 313.8
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#5B1477
secondary
#5AAD3A
accent
#EE3A6D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1477

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

Preview Lab → · Contrast checker → · Palette generator →

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