#5C1B79#5C1B79

#5C1B79 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.154 H 312.9°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#5C1B79
RGBrgb(92, 27, 121)
HSLhsl(281, 64%, 29%)
HSVhsv(281, 78%, 47%)
CMYKcmyk(24%, 77.7%, 0%, 52.5%)
CIE-LABlab(25.08, 44.39, -39.97)
CIE-LCHlch(25.08, 59.73, 318.00°)
OKLaboklab(37.39% 0.1049 -0.113)
OKLCHoklch(37.39% 0.154 312.9)
XYZxyz(8.2561, 4.4399, 18.5075)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1B79 #38791B
analogous
#2D1B79 #5C1B79 #791B67
triadic
#5C1B79 #795C1B #1B795C
tetradic
#5C1B79 #792D1B #38791B #1B6779
square
#5C1B79 #792D1B #38791B #1B6779
split-complementary
#5C1B79 #67791B #1B792D
monochromatic
#130619 #361047 #5C1B79 #8226AB #A43BD3

Accessibility & contrast

On white

11.12
#5C1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5C1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1B79
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1B79#FFFFFF#000000##FFFFFF
##5C1B791.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#103D77
Tritanopia (blue-blind)
#593049
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c1b79;
/* rgb */ color: rgb(92, 27, 121);
/* oklch */ color: oklch(37.4% 0.154 312.9);
Tailwind
colors: {
  custom: {
    50: '#8e5fa0',
    500: '#5c1b79',
    950: '#000000',
  },
}
SCSS
$custom: #5c1b79;
$custom-light: #8e5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1b79",
  "rgb": {
    "r": 92,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 281.489,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37391,
    "c": 0.1542,
    "h": 312.9
  },
  "luminance": 0.0444
}

Semantic roles & 50–950 ramp

primary
#5C1B79
secondary
#63AD43
accent
#E74174
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5C1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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