#5C185D#5C185D

#5C185D is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.131 H 327.3°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#5C185D
RGBrgb(92, 24, 93)
HSLhsl(299, 59%, 23%)
HSVhsv(299, 74%, 36%)
CMYKcmyk(1.1%, 74.2%, 0%, 63.5%)
CIE-LABlab(22.72, 39.81, -25.58)
CIE-LCHlch(22.72, 47.32, 327.27°)
OKLaboklab(35.1% 0.1105 -0.0709)
OKLCHoklch(35.1% 0.131 327.3)
XYZxyz(6.7159, 3.7194, 10.7180)
Luminance0.0372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C185D #195D18
analogous
#39185D #5C185D #5D183C
triadic
#5C185D #5D5C18 #185D5C
tetradic
#5C185D #5D3918 #195D18 #183C5D
square
#5C185D #5D3918 #195D18 #183C5D
split-complementary
#5C185D #3C5D18 #185D39
monochromatic
#180618 #2C0B2C #5C185D #8C258E #BC31BE

Accessibility & contrast

On white

12.04
#5C185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C185D
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C185D#FFFFFF#000000##FFFFFF
##5C185D1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B315F
Deuteranopia (green-blind)
#29395B
Tritanopia (blue-blind)
#5F2238
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c185d;
/* rgb */ color: rgb(92, 24, 93);
/* oklch */ color: oklch(35.1% 0.131 327.3);
Tailwind
colors: {
  custom: {
    50: '#8d5c8b',
    500: '#5c185d',
    950: '#000000',
  },
}
SCSS
$custom: #5c185d;
$custom-light: #8d5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c185d",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 299.13,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35098,
    "c": 0.13128,
    "h": 327.3
  },
  "luminance": 0.03719
}

Semantic roles & 50–950 ramp

primary
#5C185D
secondary
#3F933D
accent
#E24648
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C185D

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

Preview Lab → · Contrast checker → · Palette generator →

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