#5D1877#5D1877

#5D1877 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.156 H 314.6°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#5D1877
RGBrgb(93, 24, 119)
HSLhsl(284, 66%, 28%)
HSVhsv(284, 80%, 47%)
CMYKcmyk(21.8%, 79.8%, 0%, 53.3%)
CIE-LABlab(24.68, 45.32, -39.33)
CIE-LCHlch(24.68, 60.01, 319.05°)
OKLaboklab(37.1% 0.1096 -0.111)
OKLCHoklch(37.1% 0.156 314.6)
XYZxyz(8.1701, 4.3126, 17.8512)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1877 #327718
analogous
#2D1877 #5D1877 #771861
triadic
#5D1877 #775D18 #18775D
tetradic
#5D1877 #772D18 #327718 #186177
square
#5D1877 #772D18 #327718 #186177
split-complementary
#5D1877 #617718 #18772D
monochromatic
#140519 #350E44 #5D1877 #8522AA #A933D6

Accessibility & contrast

On white

11.28
#5D1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5D1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1877
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1877#FFFFFF#000000##FFFFFF
##5D18771.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#123C75
Tritanopia (blue-blind)
#5B2E47
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d1877;
/* rgb */ color: rgb(93, 24, 119);
/* oklch */ color: oklch(37.1% 0.156 314.6);
Tailwind
colors: {
  custom: {
    50: '#8f5e9f',
    500: '#5d1877',
    950: '#000000',
  },
}
SCSS
$custom: #5d1877;
$custom-light: #8f5e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1877",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 283.579,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37096,
    "c": 0.15598,
    "h": 314.6
  },
  "luminance": 0.04312
}

Semantic roles & 50–950 ramp

primary
#5D1877
secondary
#5DAC3F
accent
#E93E6D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1877

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

Preview Lab → · Contrast checker → · Palette generator →

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