#5C1B87#5C1B87

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

Color values

HEX#5C1B87
RGBrgb(92, 27, 135)
HSLhsl(276, 67%, 32%)
HSVhsv(276, 80%, 53%)
CMYKcmyk(31.9%, 80%, 0%, 47.1%)
CIE-LABlab(26.18, 47.57, -47.00)
CIE-LCHlch(26.18, 66.87, 315.34°)
OKLaboklab(38.52% 0.102 -0.1337)
OKLCHoklch(38.52% 0.168 307.3)
XYZxyz(9.1778, 4.8086, 23.3616)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1B87 #46871B
analogous
#261B87 #5C1B87 #871B7C
triadic
#5C1B87 #875C1B #1B875C
tetradic
#5C1B87 #87261B #46871B #1B7C87
square
#5C1B87 #87261B #46871B #1B7C87
split-complementary
#5C1B87 #7C871B #1B8726
monochromatic
#160721 #391154 #5C1B87 #7F25BA #9E43D9

Accessibility & contrast

On white

10.71
#5C1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1B87
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1B87#FFFFFF#000000##FFFFFF
##5C1B871.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1b87;
/* rgb */ color: rgb(92, 27, 135);
/* oklch */ color: oklch(38.5% 0.168 307.3);
Tailwind
colors: {
  custom: {
    50: '#8f60ab',
    500: '#5c1b87',
    950: '#000000',
  },
}
SCSS
$custom: #5c1b87;
$custom-light: #8f60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1b87",
  "rgb": {
    "r": 92,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 276.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38518,
    "c": 0.16813,
    "h": 307.3
  },
  "luminance": 0.04808
}

Semantic roles & 50–950 ramp

primary
#5C1B87
secondary
#73BA44
accent
#EA3E82
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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