#5C135E#5C135E

#5C135E is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.138 H 326.9°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#5C135E
RGBrgb(92, 19, 94)
HSLhsl(298, 66%, 22%)
HSVhsv(298, 80%, 37%)
CMYKcmyk(2.1%, 79.8%, 0%, 63.1%)
CIE-LABlab(22.12, 41.88, -27.20)
CIE-LCHlch(22.12, 49.94, 327.00°)
OKLaboklab(34.69% 0.1158 -0.0755)
OKLCHoklch(34.69% 0.138 326.9)
XYZxyz(6.6668, 3.5497, 10.9215)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C135E #155E13
analogous
#37135E #5C135E #5E133B
triadic
#5C135E #5E5C13 #135E5C
tetradic
#5C135E #5E3713 #155E13 #133B5E
square
#5C135E #5E3713 #155E13 #133B5E
split-complementary
#5C135E #3B5E13 #135E37
monochromatic
#190519 #2A092B #5C135E #8E1D91 #C028C4

Accessibility & contrast

On white

12.28
#5C135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C135E
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C135E#FFFFFF#000000##FFFFFF
##5C135E1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012F60
Deuteranopia (green-blind)
#26385C
Tritanopia (blue-blind)
#5F2038
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c135e;
/* rgb */ color: rgb(92, 19, 94);
/* oklch */ color: oklch(34.7% 0.138 326.9);
Tailwind
colors: {
  custom: {
    50: '#8d5a8c',
    500: '#5c135e',
    950: '#000000',
  },
}
SCSS
$custom: #5c135e;
$custom-light: #8d5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c135e",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 298.4,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.3469,
    "c": 0.13825,
    "h": 326.9
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#5C135E
secondary
#399637
accent
#E93F43
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5C135E

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

Preview Lab → · Contrast checker → · Palette generator →

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