#5C1776#5C1776

#5C1776 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.156 H 314.6°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#5C1776
RGBrgb(92, 23, 118)
HSLhsl(284, 67%, 28%)
HSVhsv(284, 81%, 46%)
CMYKcmyk(22%, 80.5%, 0%, 53.7%)
CIE-LABlab(24.31, 45.27, -39.29)
CIE-LCHlch(24.31, 59.95, 319.05°)
OKLaboklab(36.78% 0.1093 -0.111)
OKLCHoklch(36.78% 0.156 314.6)
XYZxyz(7.9895, 4.1964, 17.5252)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1776 #317617
analogous
#2C1776 #5C1776 #761760
triadic
#5C1776 #765C17 #17765C
tetradic
#5C1776 #762C17 #317617 #176076
square
#5C1776 #762C17 #317617 #176076
split-complementary
#5C1776 #607617 #17762C
monochromatic
#14051A #340D43 #5C1776 #8421A9 #A931D7

Accessibility & contrast

On white

11.42
#5C1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5C1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1776
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1776#FFFFFF#000000##FFFFFF
##5C17761.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#103B74
Tritanopia (blue-blind)
#5A2D46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c1776;
/* rgb */ color: rgb(92, 23, 118);
/* oklch */ color: oklch(36.8% 0.156 314.6);
Tailwind
colors: {
  custom: {
    50: '#8e5d9e',
    500: '#5c1776',
    950: '#000000',
  },
}
SCSS
$custom: #5c1776;
$custom-light: #8e5d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1776",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 283.579,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36779,
    "c": 0.15574,
    "h": 314.6
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#5C1776
secondary
#5CAB3E
accent
#EA3E6D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5C1776

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

Preview Lab → · Contrast checker → · Palette generator →

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