#5C137D#5C137D

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

Color values

HEX#5C137D
RGBrgb(92, 19, 125)
HSLhsl(281, 74%, 28%)
HSVhsv(281, 85%, 49%)
CMYKcmyk(26.4%, 84.8%, 0%, 51%)
CIE-LABlab(24.39, 48.15, -43.62)
CIE-LCHlch(24.39, 64.97, 317.83°)
OKLaboklab(37.01% 0.1111 -0.1236)
OKLCHoklch(37.01% 0.166 311.9)
XYZxyz(8.3475, 4.2220, 19.7733)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C137D #347D13
analogous
#27137D #5C137D #7D1369
triadic
#5C137D #7D5C13 #137D5C
tetradic
#5C137D #7D2713 #347D13 #13697D
square
#5C137D #7D2713 #347D13 #13697D
split-complementary
#5C137D #697D13 #137D27
monochromatic
#14041B #350B48 #5C137D #831BB2 #A72CDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C137D#FFFFFF#000000##FFFFFF
##5C137D1.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)
#003780
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#582F49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c137d;
/* rgb */ color: rgb(92, 19, 125);
/* oklch */ color: oklch(37.0% 0.166 311.9);
Tailwind
colors: {
  custom: {
    50: '#8f5ca3',
    500: '#5c137d',
    950: '#000000',
  },
}
SCSS
$custom: #5c137d;
$custom-light: #8f5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c137d",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 281.321,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3701,
    "c": 0.16621,
    "h": 311.9
  },
  "luminance": 0.04222
}

Semantic roles & 50–950 ramp

primary
#5C137D
secondary
#5FB339
accent
#F03871
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C137D

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

Preview Lab → · Contrast checker → · Palette generator →

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