#5C1584#5C1584

#5C1584 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.171 H 309.0°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#5C1584
RGBrgb(92, 21, 132)
HSLhsl(278, 73%, 30%)
HSVhsv(278, 84%, 52%)
CMYKcmyk(30.3%, 84.1%, 0%, 48.2%)
CIE-LABlab(25.19, 49.04, -46.73)
CIE-LCHlch(25.19, 67.74, 316.38°)
OKLaboklab(37.75% 0.1077 -0.1328)
OKLCHoklch(37.75% 0.171 309)
XYZxyz(8.8458, 4.4778, 22.2236)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1584 #3D8415
analogous
#241584 #5C1584 #841575
triadic
#5C1584 #845C15 #15845C
tetradic
#5C1584 #842415 #3D8415 #157584
square
#5C1584 #842415 #3D8415 #157584
split-complementary
#5C1584 #758415 #158424
monochromatic
#12041A #370D4F #5C1584 #811DB9 #A135DF

Accessibility & contrast

On white

11.08
#5C1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5C1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1584
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1584#FFFFFF#000000##FFFFFF
##5C15841.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#56334E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1584;
/* rgb */ color: rgb(92, 21, 132);
/* oklch */ color: oklch(37.7% 0.171 309.0);
Tailwind
colors: {
  custom: {
    50: '#8f5da9',
    500: '#5c1584',
    950: '#000000',
  },
}
SCSS
$custom: #5c1584;
$custom-light: #8f5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1584",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 278.378,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.37748,
    "c": 0.171,
    "h": 309
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#5C1584
secondary
#69B93C
accent
#EF397A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1584

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

Preview Lab → · Contrast checker → · Palette generator →

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