#5B1878#5B1878

#5B1878 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.156 H 313.0°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#5B1878
RGBrgb(91, 24, 120)
HSLhsl(282, 67%, 28%)
HSVhsv(282, 80%, 47%)
CMYKcmyk(24.2%, 80%, 0%, 52.9%)
CIE-LABlab(24.43, 45.14, -40.38)
CIE-LCHlch(24.43, 60.57, 318.18°)
OKLaboklab(36.88% 0.1066 -0.1142)
OKLCHoklch(36.88% 0.156 313)
XYZxyz(8.0306, 4.2337, 18.1598)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1878 #357818
analogous
#2B1878 #5B1878 #781865
triadic
#5B1878 #785B18 #18785B
tetradic
#5B1878 #782B18 #357818 #186578
square
#5B1878 #782B18 #357818 #186578
split-complementary
#5B1878 #657818 #18782B
monochromatic
#13051A #340E45 #5B1878 #8222AB #A534D6

Accessibility & contrast

On white

11.37
#5B1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5B1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1878
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1878#FFFFFF#000000##FFFFFF
##5B18781.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#0B3B76
Tritanopia (blue-blind)
#582F47
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1878;
/* rgb */ color: rgb(91, 24, 120);
/* oklch */ color: oklch(36.9% 0.156 313.0);
Tailwind
colors: {
  custom: {
    50: '#8d5da0',
    500: '#5b1878',
    950: '#000000',
  },
}
SCSS
$custom: #5b1878;
$custom-light: #8d5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1878",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 281.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36879,
    "c": 0.15624,
    "h": 313
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#5B1878
secondary
#60AD3F
accent
#EA3E72
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5B1878

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

Preview Lab → · Contrast checker → · Palette generator →

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