#5A1877#5A1877

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

Color values

HEX#5A1877
RGBrgb(90, 24, 119)
HSLhsl(282, 66%, 28%)
HSVhsv(282, 80%, 47%)
CMYKcmyk(24.4%, 79.8%, 0%, 53.3%)
CIE-LABlab(24.19, 44.72, -40.14)
CIE-LCHlch(24.19, 60.09, 318.09°)
OKLaboklab(36.65% 0.1054 -0.1135)
OKLCHoklch(36.65% 0.155 312.9)
XYZxyz(7.8723, 4.1591, 17.8373)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1877 #357718
analogous
#2A1877 #5A1877 #771864
triadic
#5A1877 #775A18 #18775A
tetradic
#5A1877 #772A18 #357718 #186477
square
#5A1877 #772A18 #357718 #186477
split-complementary
#5A1877 #647718 #18772A
monochromatic
#130519 #330E44 #5A1877 #8122AA #A433D6

Accessibility & contrast

On white

11.46
#5A1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5A1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1877
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1877#FFFFFF#000000##FFFFFF
##5A18771.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#0B3B75
Tritanopia (blue-blind)
#572E47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1877;
/* rgb */ color: rgb(90, 24, 119);
/* oklch */ color: oklch(36.7% 0.155 312.9);
Tailwind
colors: {
  custom: {
    50: '#8c5d9f',
    500: '#5a1877',
    950: '#000000',
  },
}
SCSS
$custom: #5a1877;
$custom-light: #8c5d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1877",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 281.684,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36653,
    "c": 0.15492,
    "h": 312.9
  },
  "luminance": 0.04159
}

Semantic roles & 50–950 ramp

primary
#5A1877
secondary
#60AC3F
accent
#E93E73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5A1877

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

Preview Lab → · Contrast checker → · Palette generator →

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