#5C1C8A#5C1C8A

#5C1C8A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.170 H 306.2°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#5C1C8A
RGBrgb(92, 28, 138)
HSLhsl(275, 66%, 33%)
HSVhsv(275, 80%, 54%)
CMYKcmyk(33.3%, 79.7%, 0%, 45.9%)
CIE-LABlab(26.57, 47.88, -48.25)
CIE-LCHlch(26.57, 67.97, 314.78°)
OKLaboklab(38.86% 0.1004 -0.1373)
OKLCHoklch(38.86% 0.17 306.2)
XYZxyz(9.4153, 4.9409, 24.4975)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1C8A #4A8A1C
analogous
#251C8A #5C1C8A #8A1C81
triadic
#5C1C8A #8A5C1C #1C8A5C
tetradic
#5C1C8A #8A251C #4A8A1C #1C818A
square
#5C1C8A #8A251C #4A8A1C #1C818A
split-complementary
#5C1C8A #818A1C #1C8A25
monochromatic
#180724 #3A1257 #5C1C8A #7E26BD #9C47DA

Accessibility & contrast

On white

10.56
#5C1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5C1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1C8A
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1C8A#FFFFFF#000000##FFFFFF
##5C1C8A1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1c8a;
/* rgb */ color: rgb(92, 28, 138);
/* oklch */ color: oklch(38.9% 0.170 306.2);
Tailwind
colors: {
  custom: {
    50: '#8f60ad',
    500: '#5c1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c1c8a;
$custom-light: #8f60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1c8a",
  "rgb": {
    "r": 92,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 274.909,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38864,
    "c": 0.1701,
    "h": 306.2
  },
  "luminance": 0.04941
}

Semantic roles & 50–950 ramp

primary
#5C1C8A
secondary
#77BB46
accent
#E93F86
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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