#5C1971#5C1971

#5C1971 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.149 H 316.7°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#5C1971
RGBrgb(92, 25, 113)
HSLhsl(286, 64%, 27%)
HSVhsv(286, 78%, 44%)
CMYKcmyk(18.6%, 77.9%, 0%, 55.7%)
CIE-LABlab(24.20, 43.44, -36.26)
CIE-LCHlch(24.20, 56.59, 320.15°)
OKLaboklab(36.59% 0.1082 -0.1021)
OKLCHoklch(36.59% 0.149 316.7)
XYZxyz(7.7414, 4.1631, 16.0154)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1971 #2E7119
analogous
#301971 #5C1971 #71195A
triadic
#5C1971 #715C19 #19715C
tetradic
#5C1971 #713019 #2E7119 #195A71
square
#5C1971 #713019 #2E7119 #195A71
split-complementary
#5C1971 #5A7119 #197130
monochromatic
#140619 #330E3F #5C1971 #8524A3 #AC33D2

Accessibility & contrast

On white

11.46
#5C1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5C1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1971
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1971#FFFFFF#000000##FFFFFF
##5C19711.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#1A3B6F
Tritanopia (blue-blind)
#5B2C44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c1971;
/* rgb */ color: rgb(92, 25, 113);
/* oklch */ color: oklch(36.6% 0.149 316.7);
Tailwind
colors: {
  custom: {
    50: '#8d5e9a',
    500: '#5c1971',
    950: '#000000',
  },
}
SCSS
$custom: #5c1971;
$custom-light: #8d5e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1971",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 285.682,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36586,
    "c": 0.14872,
    "h": 316.7
  },
  "luminance": 0.04163
}

Semantic roles & 50–950 ramp

primary
#5C1971
secondary
#58A640
accent
#E74169
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5C1971

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

Preview Lab → · Contrast checker → · Palette generator →

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