#5B1877#5B1877

#5B1877 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.155 H 313.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#5B1877
RGBrgb(91, 24, 119)
HSLhsl(282, 66%, 28%)
HSVhsv(282, 80%, 47%)
CMYKcmyk(23.5%, 79.8%, 0%, 53.3%)
CIE-LABlab(24.35, 44.92, -39.87)
CIE-LCHlch(24.35, 60.06, 318.41°)
OKLaboklab(36.8% 0.1068 -0.1127)
OKLCHoklch(36.8% 0.155 313.5)
XYZxyz(7.9702, 4.2096, 17.8419)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1877 #347718
analogous
#2B1877 #5B1877 #771863
triadic
#5B1877 #775B18 #18775B
tetradic
#5B1877 #772B18 #347718 #186377
square
#5B1877 #772B18 #347718 #186377
split-complementary
#5B1877 #637718 #18772B
monochromatic
#130519 #340E44 #5B1877 #8222AA #A633D6

Accessibility & contrast

On white

11.40
#5B1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1877
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1877#FFFFFF#000000##FFFFFF
##5B18771.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#0E3B75
Tritanopia (blue-blind)
#582E47
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1877;
/* rgb */ color: rgb(91, 24, 119);
/* oklch */ color: oklch(36.8% 0.155 313.5);
Tailwind
colors: {
  custom: {
    50: '#8d5d9f',
    500: '#5b1877',
    950: '#000000',
  },
}
SCSS
$custom: #5b1877;
$custom-light: #8d5d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1877",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 282.316,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.368,
    "c": 0.15527,
    "h": 313.5
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#5B1877
secondary
#5FAC3F
accent
#E93E71
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5B1877

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

Preview Lab → · Contrast checker → · Palette generator →

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