#5C1180#5C1180

#5C1180 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 37.1% C 0.171 H 310.9°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#5C1180
RGBrgb(92, 17, 128)
HSLhsl(281, 77%, 28%)
HSVhsv(281, 87%, 50%)
CMYKcmyk(28.1%, 86.7%, 0%, 49.8%)
CIE-LABlab(24.43, 49.40, -45.45)
CIE-LCHlch(24.43, 67.13, 317.38°)
OKLaboklab(37.12% 0.1117 -0.129)
OKLCHoklch(37.12% 0.171 310.9)
XYZxyz(8.5096, 4.2349, 20.7870)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1180 #358011
analogous
#251180 #5C1180 #80116C
triadic
#5C1180 #805C11 #11805C
tetradic
#5C1180 #802511 #358011 #116C80
square
#5C1180 #802511 #358011 #116C80
split-complementary
#5C1180 #6C8011 #118025
monochromatic
#13041B #350A4A #5C1180 #8318B6 #A629E3

Accessibility & contrast

On white

11.37
#5C1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5C1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1180
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1180#FFFFFF#000000##FFFFFF
##5C11801.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#572F4B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c1180;
/* rgb */ color: rgb(92, 17, 128);
/* oklch */ color: oklch(37.1% 0.171 310.9);
Tailwind
colors: {
  custom: {
    50: '#8f5ba6',
    500: '#5c1180',
    950: '#000000',
  },
}
SCSS
$custom: #5c1180;
$custom-light: #8f5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1180",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 280.541,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37116,
    "c": 0.17065,
    "h": 310.9
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#5C1180
secondary
#60B637
accent
#F33572
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C1180

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

Preview Lab → · Contrast checker → · Palette generator →

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