#5C137F#5C137F

#5C137F is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.168 H 311.1°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#5C137F
RGBrgb(92, 19, 127)
HSLhsl(281, 74%, 29%)
HSVhsv(281, 85%, 50%)
CMYKcmyk(27.6%, 85%, 0%, 50.2%)
CIE-LABlab(24.56, 48.58, -44.62)
CIE-LCHlch(24.56, 65.96, 317.43°)
OKLaboklab(37.18% 0.1106 -0.1266)
OKLCHoklch(37.18% 0.168 311.1)
XYZxyz(8.4765, 4.2736, 20.4529)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C137F #367F13
analogous
#26137F #5C137F #7F136C
triadic
#5C137F #7F5C13 #137F5C
tetradic
#5C137F #7F2613 #367F13 #136C7F
square
#5C137F #7F2613 #367F13 #136C7F
split-complementary
#5C137F #6C7F13 #137F26
monochromatic
#13041B #350B4A #5C137F #831BB4 #A62DE0

Accessibility & contrast

On white

11.32
#5C137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C137F
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C137F#FFFFFF#000000##FFFFFF
##5C137F1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#57304B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c137f;
/* rgb */ color: rgb(92, 19, 127);
/* oklch */ color: oklch(37.2% 0.168 311.1);
Tailwind
colors: {
  custom: {
    50: '#8f5ca5',
    500: '#5c137f',
    950: '#000000',
  },
}
SCSS
$custom: #5c137f;
$custom-light: #8f5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c137f",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 280.556,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37176,
    "c": 0.16807,
    "h": 311.1
  },
  "luminance": 0.04273
}

Semantic roles & 50–950 ramp

primary
#5C137F
secondary
#61B439
accent
#F13773
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C137F

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

Preview Lab → · Contrast checker → · Palette generator →

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