#5C135F#5C135F

#5C135F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.139 H 326.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#5C135F
RGBrgb(92, 19, 95)
HSLhsl(298, 67%, 22%)
HSVhsv(298, 80%, 37%)
CMYKcmyk(3.2%, 80%, 0%, 62.7%)
CIE-LABlab(22.19, 42.07, -27.76)
CIE-LCHlch(22.19, 50.40, 326.58°)
OKLaboklab(34.76% 0.1158 -0.0772)
OKLCHoklch(34.76% 0.139 326.3)
XYZxyz(6.7119, 3.5677, 11.1594)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C135F #165F13
analogous
#36135F #5C135F #5F133C
triadic
#5C135F #5F5C13 #135F5C
tetradic
#5C135F #5F3613 #165F13 #133C5F
square
#5C135F #5F3613 #165F13 #133C5F
split-complementary
#5C135F #3C5F13 #135F36
monochromatic
#19051A #2B092C #5C135F #8D1D92 #BF27C5

Accessibility & contrast

On white

12.26
#5C135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5C135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C135F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C135F#FFFFFF#000000##FFFFFF
##5C135F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#25385D
Tritanopia (blue-blind)
#5F2038
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c135f;
/* rgb */ color: rgb(92, 19, 95);
/* oklch */ color: oklch(34.8% 0.139 326.3);
Tailwind
colors: {
  custom: {
    50: '#8d5a8d',
    500: '#5c135f',
    950: '#000000',
  },
}
SCSS
$custom: #5c135f;
$custom-light: #8d5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5c135f",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 297.632,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34757,
    "c": 0.13912,
    "h": 326.3
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#5C135F
secondary
#3B9737
accent
#EA3E45
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5C135F

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

Preview Lab → · Contrast checker → · Palette generator →

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