#5C186E#5C186E

#5C186E is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.3% C 0.147 H 318.2°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#5C186E
RGBrgb(92, 24, 110)
HSLhsl(287, 64%, 26%)
HSVhsv(287, 78%, 43%)
CMYKcmyk(16.4%, 78.2%, 0%, 56.9%)
CIE-LABlab(23.85, 43.20, -34.89)
CIE-LCHlch(23.85, 55.53, 321.08°)
OKLaboklab(36.27% 0.1096 -0.0981)
OKLCHoklch(36.27% 0.147 318.2)
XYZxyz(7.5543, 4.0547, 15.1335)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C186E #2A6E18
analogous
#31186E #5C186E #6E1855
triadic
#5C186E #6E5C18 #186E5C
tetradic
#5C186E #6E3118 #2A6E18 #18556E
square
#5C186E #6E3118 #2A6E18 #18556E
split-complementary
#5C186E #556E18 #186E31
monochromatic
#150519 #320D3C #5C186E #8623A0 #B02FD2

Accessibility & contrast

On white

11.60
#5C186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5C186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C186E
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C186E#FFFFFF#000000##FFFFFF
##5C186E1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#1C3B6C
Tritanopia (blue-blind)
#5B2A42
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5c186e;
/* rgb */ color: rgb(92, 24, 110);
/* oklch */ color: oklch(36.3% 0.147 318.2);
Tailwind
colors: {
  custom: {
    50: '#8d5d98',
    500: '#5c186e',
    950: '#000000',
  },
}
SCSS
$custom: #5c186e;
$custom-light: #8d5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#5c186e",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 287.442,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36268,
    "c": 0.14703,
    "h": 318.2
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#5C186E
secondary
#53A43E
accent
#E74163
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5C186E

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

Preview Lab → · Contrast checker → · Palette generator →

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