#5C1A88#5C1A88

#5C1A88 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.170 H 307.1°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5C1A88
RGBrgb(92, 26, 136)
HSLhsl(276, 68%, 32%)
HSVhsv(276, 81%, 53%)
CMYKcmyk(32.4%, 80.9%, 0%, 46.7%)
CIE-LABlab(26.13, 48.18, -47.71)
CIE-LCHlch(26.13, 67.80, 315.28°)
OKLaboklab(38.51% 0.1026 -0.1357)
OKLCHoklch(38.51% 0.17 307.1)
XYZxyz(9.2260, 4.7918, 23.7267)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1A88 #46881A
analogous
#251A88 #5C1A88 #881A7D
triadic
#5C1A88 #885C1A #1A885C
tetradic
#5C1A88 #88251A #46881A #1A7D88
square
#5C1A88 #88251A #46881A #1A7D88
split-complementary
#5C1A88 #7D881A #1A8825
monochromatic
#160621 #391055 #5C1A88 #7F24BB #9E42DB

Accessibility & contrast

On white

10.72
#5C1A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5C1A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1A88
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1A88#FFFFFF#000000##FFFFFF
##5C1A881.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#543751
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c1a88;
/* rgb */ color: rgb(92, 26, 136);
/* oklch */ color: oklch(38.5% 0.170 307.1);
Tailwind
colors: {
  custom: {
    50: '#8f5fab',
    500: '#5c1a88',
    950: '#000000',
  },
}
SCSS
$custom: #5c1a88;
$custom-light: #8f5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1a88",
  "rgb": {
    "r": 92,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 276,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3851,
    "c": 0.17014,
    "h": 307.1
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#5C1A88
secondary
#73BB43
accent
#EB3D83
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1A88

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

Preview Lab → · Contrast checker → · Palette generator →

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