#5C185B#5C185B

#5C185B is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.130 H 328.5°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#5C185B
RGBrgb(92, 24, 91)
HSLhsl(301, 59%, 23%)
HSVhsv(301, 74%, 36%)
CMYKcmyk(0%, 73.9%, 1.1%, 63.9%)
CIE-LABlab(22.60, 39.43, -24.45)
CIE-LCHlch(22.60, 46.40, 328.20°)
OKLaboklab(34.97% 0.1105 -0.0676)
OKLCHoklch(34.97% 0.13 328.5)
XYZxyz(6.6285, 3.6844, 10.2575)
Luminance0.0368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C185B #185C19
analogous
#3B185C #5C185B #5C1839
triadic
#5C185B #5B5C18 #185B5C
tetradic
#5C185B #5C3B18 #185C19 #18395C
square
#5C185B #5C3B18 #185C19 #18395C
split-complementary
#5C185B #395C18 #185C3B
monochromatic
#180618 #2B0B2B #5C185B #8D258B #BD31BB

Accessibility & contrast

On white

12.09
#5C185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5C185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C185B
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C185B#FFFFFF#000000##FFFFFF
##5C185B1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E305D
Deuteranopia (green-blind)
#2A3959
Tritanopia (blue-blind)
#5F2137
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c185b;
/* rgb */ color: rgb(92, 24, 91);
/* oklch */ color: oklch(35.0% 0.130 328.5);
Tailwind
colors: {
  custom: {
    50: '#8d5c8a',
    500: '#5c185b',
    950: '#000000',
  },
}
SCSS
$custom: #5c185b;
$custom-light: #8d5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c185b",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 300.882,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34971,
    "c": 0.1295,
    "h": 328.5
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

primary
#5C185B
secondary
#3D933F
accent
#E24846
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C185B

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

Preview Lab → · Contrast checker → · Palette generator →

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