#5B1476#5B1476

#5B1476 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.4% C 0.158 H 314.2°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#5B1476
RGBrgb(91, 20, 118)
HSLhsl(283, 71%, 27%)
HSVhsv(283, 83%, 46%)
CMYKcmyk(22.9%, 83.1%, 0%, 53.7%)
CIE-LABlab(23.78, 46.13, -40.16)
CIE-LCHlch(23.78, 61.16, 318.96°)
OKLaboklab(36.37% 0.1105 -0.1135)
OKLCHoklch(36.37% 0.158 314.2)
XYZxyz(7.8340, 4.0327, 17.5018)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1476 #2F7614
analogous
#2A1476 #5B1476 #761460
triadic
#5B1476 #765B14 #14765B
tetradic
#5B1476 #762A14 #2F7614 #146076
square
#5B1476 #762A14 #2F7614 #146076
split-complementary
#5B1476 #607614 #14762A
monochromatic
#14041A #330B42 #5B1476 #831DAA #AA2ADB

Accessibility & contrast

On white

11.63
#5B1476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1476
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1476#FFFFFF#000000##FFFFFF
##5B14761.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#0A3A74
Tritanopia (blue-blind)
#582C46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1476;
/* rgb */ color: rgb(91, 20, 118);
/* oklch */ color: oklch(36.4% 0.158 314.2);
Tailwind
colors: {
  custom: {
    50: '#8d5c9e',
    500: '#5b1476',
    950: '#000000',
  },
}
SCSS
$custom: #5b1476;
$custom-light: #8d5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1476",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 283.469,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36373,
    "c": 0.15845,
    "h": 314.2
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#5B1476
secondary
#59AC3A
accent
#EE3A6C
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1476

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

Preview Lab → · Contrast checker → · Palette generator →

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