#5C137B#5C137B

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

Color values

HEX#5C137B
RGBrgb(92, 19, 123)
HSLhsl(282, 73%, 28%)
HSVhsv(282, 85%, 48%)
CMYKcmyk(25.2%, 84.6%, 0%, 51.8%)
CIE-LABlab(24.23, 47.72, -42.61)
CIE-LCHlch(24.23, 63.97, 318.24°)
OKLaboklab(36.85% 0.1116 -0.1207)
OKLCHoklch(36.85% 0.164 312.8)
XYZxyz(8.2210, 4.1714, 19.1071)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C137B #327B13
analogous
#28137B #5C137B #7B1366
triadic
#5C137B #7B5C13 #137B5C
tetradic
#5C137B #7B2813 #327B13 #13667B
square
#5C137B #7B2813 #327B13 #13667B
split-complementary
#5C137B #667B13 #137B28
monochromatic
#14041B #340B46 #5C137B #841BB0 #A92ADE

Accessibility & contrast

On white

11.45
#5C137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C137B
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C137B#FFFFFF#000000##FFFFFF
##5C137B1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#582E48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c137b;
/* rgb */ color: rgb(92, 19, 123);
/* oklch */ color: oklch(36.8% 0.164 312.8);
Tailwind
colors: {
  custom: {
    50: '#8e5ca2',
    500: '#5c137b',
    950: '#000000',
  },
}
SCSS
$custom: #5c137b;
$custom-light: #8e5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c137b",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 282.115,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36846,
    "c": 0.16436,
    "h": 312.8
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#5C137B
secondary
#5DB139
accent
#F0386F
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C137B

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

Preview Lab → · Contrast checker → · Palette generator →

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