#5B1870#5B1870

#5B1870 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.149 H 316.6°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#5B1870
RGBrgb(91, 24, 112)
HSLhsl(286, 65%, 27%)
HSVhsv(286, 79%, 44%)
CMYKcmyk(18.7%, 78.6%, 0%, 56.1%)
CIE-LABlab(23.83, 43.41, -36.23)
CIE-LCHlch(23.83, 56.54, 320.15°)
OKLaboklab(36.26% 0.108 -0.102)
OKLCHoklch(36.26% 0.149 316.6)
XYZxyz(7.5652, 4.0476, 15.7089)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1870 #2D7018
analogous
#2F1870 #5B1870 #701859
triadic
#5B1870 #705B18 #18705B
tetradic
#5B1870 #702F18 #2D7018 #185970
square
#5B1870 #702F18 #2D7018 #185970
split-complementary
#5B1870 #597018 #18702F
monochromatic
#140519 #320D3E #5B1870 #8423A2 #AC30D3

Accessibility & contrast

On white

11.61
#5B1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1870
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1870#FFFFFF#000000##FFFFFF
##5B18701.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#183B6E
Tritanopia (blue-blind)
#5A2B43
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1870;
/* rgb */ color: rgb(91, 24, 112);
/* oklch */ color: oklch(36.3% 0.149 316.6);
Tailwind
colors: {
  custom: {
    50: '#8d5d9a',
    500: '#5b1870',
    950: '#000000',
  },
}
SCSS
$custom: #5b1870;
$custom-light: #8d5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1870",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 285.682,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36263,
    "c": 0.14852,
    "h": 316.6
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#5B1870
secondary
#57A53E
accent
#E84068
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5B1870

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

Preview Lab → · Contrast checker → · Palette generator →

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