#5D1878#5D1878

#5D1878 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.157 H 314.2°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#5D1878
RGBrgb(93, 24, 120)
HSLhsl(283, 67%, 28%)
HSVhsv(283, 80%, 47%)
CMYKcmyk(22.5%, 80%, 0%, 52.9%)
CIE-LABlab(24.75, 45.54, -39.84)
CIE-LCHlch(24.75, 60.51, 318.82°)
OKLaboklab(37.17% 0.1094 -0.1125)
OKLCHoklch(37.17% 0.157 314.2)
XYZxyz(8.2304, 4.3368, 18.1692)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1878 #337818
analogous
#2D1878 #5D1878 #781863
triadic
#5D1878 #785D18 #18785D
tetradic
#5D1878 #782D18 #337818 #186378
square
#5D1878 #782D18 #337818 #186378
split-complementary
#5D1878 #637818 #18782D
monochromatic
#14051A #350E45 #5D1878 #8522AB #A934D6

Accessibility & contrast

On white

11.25
#5D1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5D1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1878
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1878#FFFFFF#000000##FFFFFF
##5D18781.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#103C76
Tritanopia (blue-blind)
#5A2E48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d1878;
/* rgb */ color: rgb(93, 24, 120);
/* oklch */ color: oklch(37.2% 0.157 314.2);
Tailwind
colors: {
  custom: {
    50: '#8f5ea0',
    500: '#5d1878',
    950: '#000000',
  },
}
SCSS
$custom: #5d1878;
$custom-light: #8f5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1878",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 283.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37174,
    "c": 0.15694,
    "h": 314.2
  },
  "luminance": 0.04336
}

Semantic roles & 50–950 ramp

primary
#5D1878
secondary
#5EAD3F
accent
#EA3E6E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5D1878

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

Preview Lab → · Contrast checker → · Palette generator →

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