#5C137C#5C137C

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

Color values

HEX#5C137C
RGBrgb(92, 19, 124)
HSLhsl(282, 73%, 28%)
HSVhsv(282, 85%, 49%)
CMYKcmyk(25.8%, 84.7%, 0%, 51.4%)
CIE-LABlab(24.31, 47.93, -43.11)
CIE-LCHlch(24.31, 64.47, 318.03°)
OKLaboklab(36.93% 0.1113 -0.1222)
OKLCHoklch(36.93% 0.165 312.3)
XYZxyz(8.2839, 4.1965, 19.4385)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C137C #337C13
analogous
#27137C #5C137C #7C1367
triadic
#5C137C #7C5C13 #137C5C
tetradic
#5C137C #7C2713 #337C13 #13677C
square
#5C137C #7C2713 #337C13 #13677C
split-complementary
#5C137C #677C13 #137C27
monochromatic
#14041B #350B47 #5C137C #831BB1 #A82BDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C137C#FFFFFF#000000##FFFFFF
##5C137C1.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)
#00367F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#582E49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c137c;
/* rgb */ color: rgb(92, 19, 124);
/* oklch */ color: oklch(36.9% 0.165 312.3);
Tailwind
colors: {
  custom: {
    50: '#8e5ca3',
    500: '#5c137c',
    950: '#000000',
  },
}
SCSS
$custom: #5c137c;
$custom-light: #8e5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c137c",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 281.714,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36928,
    "c": 0.16529,
    "h": 312.3
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#5C137C
secondary
#5EB239
accent
#F03870
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C137C

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

Preview Lab → · Contrast checker → · Palette generator →

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