#5C185E#5C185E

#5C185E is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.132 H 326.7°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#5C185E
RGBrgb(92, 24, 94)
HSLhsl(298, 59%, 23%)
HSVhsv(298, 74%, 37%)
CMYKcmyk(2.1%, 74.5%, 0%, 63.1%)
CIE-LABlab(22.78, 40.00, -26.15)
CIE-LCHlch(22.78, 47.79, 326.83°)
OKLaboklab(35.16% 0.1105 -0.0725)
OKLCHoklch(35.16% 0.132 326.7)
XYZxyz(6.7605, 3.7372, 10.9528)
Luminance0.0374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C185E #1A5E18
analogous
#39185E #5C185E #5E183D
triadic
#5C185E #5E5C18 #185E5C
tetradic
#5C185E #5E3918 #1A5E18 #183D5E
square
#5C185E #5E3918 #1A5E18 #183D5E
split-complementary
#5C185E #3D5E18 #185E39
monochromatic
#180618 #2C0C2D #5C185E #8C248F #BB31C0

Accessibility & contrast

On white

12.02
#5C185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5C185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C185E
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C185E#FFFFFF#000000##FFFFFF
##5C185E1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3160
Deuteranopia (green-blind)
#28395C
Tritanopia (blue-blind)
#5F2339
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c185e;
/* rgb */ color: rgb(92, 24, 94);
/* oklch */ color: oklch(35.2% 0.132 326.7);
Tailwind
colors: {
  custom: {
    50: '#8d5c8c',
    500: '#5c185e',
    950: '#000000',
  },
}
SCSS
$custom: #5c185e;
$custom-light: #8d5c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c185e",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 298.286,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35162,
    "c": 0.13218,
    "h": 326.7
  },
  "luminance": 0.03737
}

Semantic roles & 50–950 ramp

primary
#5C185E
secondary
#40943D
accent
#E3454A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C185E

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

Preview Lab → · Contrast checker → · Palette generator →

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