#5C137E#5C137E

#5C137E is a dark, vivid purple. Relative luminance 0.042; OKLCH L 37.1% C 0.167 H 311.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#5C137E
RGBrgb(92, 19, 126)
HSLhsl(281, 74%, 28%)
HSVhsv(281, 85%, 49%)
CMYKcmyk(27%, 84.9%, 0%, 50.6%)
CIE-LABlab(24.47, 48.36, -44.12)
CIE-LCHlch(24.47, 65.46, 317.63°)
OKLaboklab(37.09% 0.1108 -0.1251)
OKLCHoklch(37.09% 0.167 311.5)
XYZxyz(8.4117, 4.2476, 20.1114)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C137E #357E13
analogous
#27137E #5C137E #7E136A
triadic
#5C137E #7E5C13 #137E5C
tetradic
#5C137E #7E2713 #357E13 #136A7E
square
#5C137E #7E2713 #357E13 #136A7E
split-complementary
#5C137E #6A7E13 #137E27
monochromatic
#13041B #350B49 #5C137E #831BB3 #A62CDF

Accessibility & contrast

On white

11.36
#5C137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5C137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C137E
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C137E#FFFFFF#000000##FFFFFF
##5C137E1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#582F4A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c137e;
/* rgb */ color: rgb(92, 19, 126);
/* oklch */ color: oklch(37.1% 0.167 311.5);
Tailwind
colors: {
  custom: {
    50: '#8f5ca4',
    500: '#5c137e',
    950: '#000000',
  },
}
SCSS
$custom: #5c137e;
$custom-light: #8f5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c137e",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 280.935,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37093,
    "c": 0.16714,
    "h": 311.5
  },
  "luminance": 0.04247
}

Semantic roles & 50–950 ramp

primary
#5C137E
secondary
#60B439
accent
#F03772
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C137E

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

Preview Lab → · Contrast checker → · Palette generator →

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