#5D1876#5D1876

#5D1876 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.155 H 315.1°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#5D1876
RGBrgb(93, 24, 118)
HSLhsl(284, 66%, 28%)
HSVhsv(284, 80%, 46%)
CMYKcmyk(21.2%, 79.7%, 0%, 53.7%)
CIE-LABlab(24.60, 45.11, -38.81)
CIE-LCHlch(24.60, 59.51, 319.29°)
OKLaboklab(37.02% 0.1097 -0.1095)
OKLCHoklch(37.02% 0.155 315.1)
XYZxyz(8.1103, 4.2887, 17.5366)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1876 #317618
analogous
#2E1876 #5D1876 #761860
triadic
#5D1876 #765D18 #18765D
tetradic
#5D1876 #762E18 #317618 #186076
square
#5D1876 #762E18 #317618 #186076
split-complementary
#5D1876 #607618 #18762E
monochromatic
#140519 #350E43 #5D1876 #8522A9 #AA33D5

Accessibility & contrast

On white

11.30
#5D1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1876
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1876#FFFFFF#000000##FFFFFF
##5D18761.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#143C74
Tritanopia (blue-blind)
#5B2D46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1876;
/* rgb */ color: rgb(93, 24, 118);
/* oklch */ color: oklch(37.0% 0.155 315.1);
Tailwind
colors: {
  custom: {
    50: '#8f5e9e',
    500: '#5d1876',
    950: '#000000',
  },
}
SCSS
$custom: #5d1876;
$custom-light: #8f5e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1876",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 284.043,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37019,
    "c": 0.15503,
    "h": 315.1
  },
  "luminance": 0.04288
}

Semantic roles & 50–950 ramp

primary
#5D1876
secondary
#5CAB3F
accent
#E93F6C
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1876

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

Preview Lab → · Contrast checker → · Palette generator →

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