#5C1D8A#5C1D8A

#5C1D8A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.169 H 306.1°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#5C1D8A
RGBrgb(92, 29, 138)
HSLhsl(275, 65%, 33%)
HSVhsv(275, 79%, 54%)
CMYKcmyk(33.3%, 79%, 0%, 45.9%)
CIE-LABlab(26.70, 47.48, -48.03)
CIE-LCHlch(26.70, 67.53, 314.67°)
OKLaboklab(38.96% 0.0995 -0.1367)
OKLCHoklch(38.96% 0.169 306.1)
XYZxyz(9.4394, 4.9891, 24.5055)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1D8A #4B8A1D
analogous
#261D8A #5C1D8A #8A1D81
triadic
#5C1D8A #8A5C1D #1D8A5C
tetradic
#5C1D8A #8A261D #4B8A1D #1D818A
square
#5C1D8A #8A261D #4B8A1D #1D818A
split-complementary
#5C1D8A #818A1D #1D8A26
monochromatic
#190825 #3A1257 #5C1D8A #7E28BD #9C49D9

Accessibility & contrast

On white

10.51
#5C1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5C1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1D8A
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1D8A#FFFFFF#000000##FFFFFF
##5C1D8A1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#543953
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c1d8a;
/* rgb */ color: rgb(92, 29, 138);
/* oklch */ color: oklch(39.0% 0.169 306.1);
Tailwind
colors: {
  custom: {
    50: '#8f61ad',
    500: '#5c1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c1d8a;
$custom-light: #8f61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1d8a",
  "rgb": {
    "r": 92,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 274.679,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38961,
    "c": 0.16906,
    "h": 306.1
  },
  "luminance": 0.04989
}

Semantic roles & 50–950 ramp

primary
#5C1D8A
secondary
#78BB48
accent
#E84087
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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