#5C1B8A#5C1B8A

#5C1B8A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.171 H 306.3°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#5C1B8A
RGBrgb(92, 27, 138)
HSLhsl(275, 67%, 32%)
HSVhsv(275, 80%, 54%)
CMYKcmyk(33.3%, 80.4%, 0%, 45.9%)
CIE-LABlab(26.43, 48.27, -48.47)
CIE-LCHlch(26.43, 68.40, 314.88°)
OKLaboklab(38.77% 0.1012 -0.138)
OKLCHoklch(38.77% 0.171 306.3)
XYZxyz(9.3920, 4.8942, 24.4897)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1B8A #498A1B
analogous
#241B8A #5C1B8A #8A1B81
triadic
#5C1B8A #8A5C1B #1B8A5C
tetradic
#5C1B8A #8A241B #498A1B #1B818A
square
#5C1B8A #8A241B #498A1B #1B818A
split-complementary
#5C1B8A #818A1B #1B8A24
monochromatic
#180724 #3A1157 #5C1B8A #7E25BD #9D45DB

Accessibility & contrast

On white

10.61
#5C1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5C1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1B8A
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1B8A#FFFFFF#000000##FFFFFF
##5C1B8A1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1b8a;
/* rgb */ color: rgb(92, 27, 138);
/* oklch */ color: oklch(38.8% 0.171 306.3);
Tailwind
colors: {
  custom: {
    50: '#8f60ad',
    500: '#5c1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c1b8a;
$custom-light: #8f60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1b8a",
  "rgb": {
    "r": 92,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 275.135,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3877,
    "c": 0.17113,
    "h": 306.3
  },
  "luminance": 0.04894
}

Semantic roles & 50–950 ramp

primary
#5C1B8A
secondary
#76BC45
accent
#EA3E85
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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