#5C135B#5C135B

#5C135B is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.136 H 328.6°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#5C135B
RGBrgb(92, 19, 91)
HSLhsl(301, 66%, 22%)
HSVhsv(301, 79%, 36%)
CMYKcmyk(0%, 79.3%, 1.1%, 63.9%)
CIE-LABlab(21.93, 41.33, -25.51)
CIE-LCHlch(21.93, 48.57, 328.32°)
OKLaboklab(34.49% 0.1159 -0.0706)
OKLCHoklch(34.49% 0.136 328.6)
XYZxyz(6.5348, 3.4969, 10.2263)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C135B #135C14
analogous
#39135C #5C135B #5C1337
triadic
#5C135B #5B5C13 #135B5C
tetradic
#5C135B #5C3913 #135C14 #13375C
square
#5C135B #5C3913 #135C14 #13375C
split-complementary
#5C135B #375C13 #135C39
monochromatic
#190519 #290929 #5C135B #8F1D8D #C128BF

Accessibility & contrast

On white

12.36
#5C135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5C135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C135B
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C135B#FFFFFF#000000##FFFFFF
##5C135B1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062E5D
Deuteranopia (green-blind)
#283859
Tritanopia (blue-blind)
#5F1E36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c135b;
/* rgb */ color: rgb(92, 19, 91);
/* oklch */ color: oklch(34.5% 0.136 328.6);
Tailwind
colors: {
  custom: {
    50: '#8d5a8a',
    500: '#5c135b',
    950: '#000000',
  },
}
SCSS
$custom: #5c135b;
$custom-light: #8d5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c135b",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 300.822,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34494,
    "c": 0.13568,
    "h": 328.6
  },
  "luminance": 0.03496
}

Semantic roles & 50–950 ramp

primary
#5C135B
secondary
#379438
accent
#E9413F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C135B

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

Preview Lab → · Contrast checker → · Palette generator →

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