#5C157A#5C157A

#5C157A is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.162 H 313.0°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#5C157A
RGBrgb(92, 21, 122)
HSLhsl(282, 71%, 28%)
HSVhsv(282, 83%, 48%)
CMYKcmyk(24.6%, 82.8%, 0%, 52.2%)
CIE-LABlab(24.38, 46.84, -41.74)
CIE-LCHlch(24.38, 62.74, 318.30°)
OKLaboklab(36.92% 0.1102 -0.1181)
OKLCHoklch(36.92% 0.162 313)
XYZxyz(8.1940, 4.2170, 18.7909)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C157A #337A15
analogous
#29157A #5C157A #7A1565
triadic
#5C157A #7A5C15 #157A5C
tetradic
#5C157A #7A2915 #337A15 #15657A
square
#5C157A #7A2915 #337A15 #15657A
split-complementary
#5C157A #657A15 #157A29
monochromatic
#14041A #350C46 #5C157A #831EAE #A82EDB

Accessibility & contrast

On white

11.39
#5C157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C157A
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C157A#FFFFFF#000000##FFFFFF
##5C157A1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#053B78
Tritanopia (blue-blind)
#592E48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c157a;
/* rgb */ color: rgb(92, 21, 122);
/* oklch */ color: oklch(36.9% 0.162 313.0);
Tailwind
colors: {
  custom: {
    50: '#8e5ca1',
    500: '#5c157a',
    950: '#000000',
  },
}
SCSS
$custom: #5c157a;
$custom-light: #8e5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c157a",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 282.178,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36923,
    "c": 0.16156,
    "h": 313
  },
  "luminance": 0.04217
}

Semantic roles & 50–950 ramp

primary
#5C157A
secondary
#5EAF3B
accent
#ED3A70
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C157A

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

Preview Lab → · Contrast checker → · Palette generator →

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