#5B1876#5B1876

#5B1876 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.154 H 313.9°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#5B1876
RGBrgb(91, 24, 118)
HSLhsl(283, 66%, 28%)
HSVhsv(283, 80%, 46%)
CMYKcmyk(22.9%, 79.7%, 0%, 53.7%)
CIE-LABlab(24.28, 44.70, -39.35)
CIE-LCHlch(24.28, 59.55, 318.64°)
OKLaboklab(36.72% 0.107 -0.1112)
OKLCHoklch(36.72% 0.154 313.9)
XYZxyz(7.9105, 4.1857, 17.5272)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1876 #337618
analogous
#2C1876 #5B1876 #761862
triadic
#5B1876 #765B18 #18765B
tetradic
#5B1876 #762C18 #337618 #186276
square
#5B1876 #762C18 #337618 #186276
split-complementary
#5B1876 #627618 #18762C
monochromatic
#140519 #340E43 #5B1876 #8222A9 #A733D5

Accessibility & contrast

On white

11.43
#5B1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5B1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1876
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1876#FFFFFF#000000##FFFFFF
##5B18761.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#103B74
Tritanopia (blue-blind)
#582E46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1876;
/* rgb */ color: rgb(91, 24, 118);
/* oklch */ color: oklch(36.7% 0.154 313.9);
Tailwind
colors: {
  custom: {
    50: '#8d5d9e',
    500: '#5b1876',
    950: '#000000',
  },
}
SCSS
$custom: #5b1876;
$custom-light: #8d5d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1876",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 282.766,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36722,
    "c": 0.1543,
    "h": 313.9
  },
  "luminance": 0.04185
}

Semantic roles & 50–950 ramp

primary
#5B1876
secondary
#5EAB3F
accent
#E93F70
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5B1876

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

Preview Lab → · Contrast checker → · Palette generator →

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