#5C1586#5C1586

#5C1586 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.173 H 308.3°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#5C1586
RGBrgb(92, 21, 134)
HSLhsl(278, 73%, 30%)
HSVhsv(278, 84%, 53%)
CMYKcmyk(31.3%, 84.3%, 0%, 47.5%)
CIE-LABlab(25.36, 49.48, -47.72)
CIE-LCHlch(25.36, 68.74, 316.04°)
OKLaboklab(37.92% 0.1071 -0.1357)
OKLCHoklch(37.92% 0.173 308.3)
XYZxyz(8.9840, 4.5330, 22.9513)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1586 #3F8615
analogous
#231586 #5C1586 #861577
triadic
#5C1586 #865C15 #15865C
tetradic
#5C1586 #862315 #3F8615 #157786
square
#5C1586 #862315 #3F8615 #157786
split-complementary
#5C1586 #778615 #158623
monochromatic
#13041C #380D51 #5C1586 #801DBB #A036DF

Accessibility & contrast

On white

11.01
#5C1586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5C1586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1586
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1586#FFFFFF#000000##FFFFFF
##5C15861.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#55344F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1586;
/* rgb */ color: rgb(92, 21, 134);
/* oklch */ color: oklch(37.9% 0.173 308.3);
Tailwind
colors: {
  custom: {
    50: '#8f5daa',
    500: '#5c1586',
    950: '#000000',
  },
}
SCSS
$custom: #5c1586;
$custom-light: #8f5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1586",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 134
  },
  "hsl": {
    "h": 277.699,
    "s": 72.903,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37918,
    "c": 0.1729,
    "h": 308.3
  },
  "luminance": 0.04533
}

Semantic roles & 50–950 ramp

primary
#5C1586
secondary
#6BBA3C
accent
#F0387C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1586

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

Preview Lab → · Contrast checker → · Palette generator →

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