#5B1872#5B1872

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

Color values

HEX#5B1872
RGBrgb(91, 24, 114)
HSLhsl(285, 65%, 27%)
HSVhsv(285, 79%, 45%)
CMYKcmyk(20.2%, 78.9%, 0%, 55.3%)
CIE-LABlab(23.98, 43.83, -37.28)
CIE-LCHlch(23.98, 57.54, 319.62°)
OKLaboklab(36.41% 0.1077 -0.1051)
OKLCHoklch(36.41% 0.15 315.7)
XYZxyz(7.6778, 4.0926, 16.3018)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1872 #2F7218
analogous
#2E1872 #5B1872 #72185C
triadic
#5B1872 #725B18 #18725B
tetradic
#5B1872 #722E18 #2F7218 #185C72
square
#5B1872 #722E18 #2F7218 #185C72
split-complementary
#5B1872 #5C7218 #18722E
monochromatic
#140519 #330D3F #5B1872 #8323A5 #AA31D4

Accessibility & contrast

On white

11.55
#5B1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1872
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1872#FFFFFF#000000##FFFFFF
##5B18721.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#163B70
Tritanopia (blue-blind)
#592C44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1872;
/* rgb */ color: rgb(91, 24, 114);
/* oklch */ color: oklch(36.4% 0.150 315.7);
Tailwind
colors: {
  custom: {
    50: '#8d5d9b',
    500: '#5b1872',
    950: '#000000',
  },
}
SCSS
$custom: #5b1872;
$custom-light: #8d5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1872",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 284.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36414,
    "c": 0.15044,
    "h": 315.7
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

primary
#5B1872
secondary
#59A73E
accent
#E8406B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5B1872

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

Preview Lab → · Contrast checker → · Palette generator →

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