#5C1A8A#5C1A8A

#5C1A8A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.172 H 306.4°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#5C1A8A
RGBrgb(92, 26, 138)
HSLhsl(275, 68%, 32%)
HSVhsv(275, 81%, 54%)
CMYKcmyk(33.3%, 81.2%, 0%, 45.9%)
CIE-LABlab(26.30, 48.64, -48.68)
CIE-LCHlch(26.30, 68.82, 314.98°)
OKLaboklab(38.68% 0.1021 -0.1386)
OKLCHoklch(38.68% 0.172 306.4)
XYZxyz(9.3695, 4.8492, 24.4822)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1A8A #488A1A
analogous
#241A8A #5C1A8A #8A1A80
triadic
#5C1A8A #8A5C1A #1A8A5C
tetradic
#5C1A8A #8A241A #488A1A #1A808A
square
#5C1A8A #8A241A #488A1A #1A808A
split-complementary
#5C1A8A #808A1A #1A8A24
monochromatic
#170723 #3A1057 #5C1A8A #7E24BD #9D43DC

Accessibility & contrast

On white

10.66
#5C1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5C1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1A8A
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1A8A#FFFFFF#000000##FFFFFF
##5C1A8A1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#543752
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c1a8a;
/* rgb */ color: rgb(92, 26, 138);
/* oklch */ color: oklch(38.7% 0.172 306.4);
Tailwind
colors: {
  custom: {
    50: '#8f5fad',
    500: '#5c1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c1a8a;
$custom-light: #8f5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1a8a",
  "rgb": {
    "r": 92,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 275.357,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38679,
    "c": 0.17213,
    "h": 306.4
  },
  "luminance": 0.04849
}

Semantic roles & 50–950 ramp

primary
#5C1A8A
secondary
#75BD43
accent
#EB3D84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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