#5C1A87#5C1A87

#5C1A87 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.169 H 307.5°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5C1A87
RGBrgb(92, 26, 135)
HSLhsl(276, 68%, 32%)
HSVhsv(276, 81%, 53%)
CMYKcmyk(31.9%, 80.7%, 0%, 47.1%)
CIE-LABlab(26.05, 47.95, -47.22)
CIE-LCHlch(26.05, 67.30, 315.44°)
OKLaboklab(38.43% 0.1029 -0.1343)
OKLCHoklch(38.43% 0.169 307.5)
XYZxyz(9.1553, 4.7635, 23.3541)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1A87 #45871A
analogous
#251A87 #5C1A87 #871A7C
triadic
#5C1A87 #875C1A #1A875C
tetradic
#5C1A87 #87251A #45871A #1A7C87
square
#5C1A87 #87251A #45871A #1A7C87
split-complementary
#5C1A87 #7C871A #1A8725
monochromatic
#160620 #391054 #5C1A87 #7F24BA #9E41DA

Accessibility & contrast

On white

10.75
#5C1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5C1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1A87
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1A87#FFFFFF#000000##FFFFFF
##5C1A871.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#553651
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c1a87;
/* rgb */ color: rgb(92, 26, 135);
/* oklch */ color: oklch(38.4% 0.169 307.5);
Tailwind
colors: {
  custom: {
    50: '#8f5fab',
    500: '#5c1a87',
    950: '#000000',
  },
}
SCSS
$custom: #5c1a87;
$custom-light: #8f5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1a87",
  "rgb": {
    "r": 92,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 276.33,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38426,
    "c": 0.16915,
    "h": 307.5
  },
  "luminance": 0.04763
}

Semantic roles & 50–950 ramp

primary
#5C1A87
secondary
#72BA42
accent
#EB3D82
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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