#5C186F#5C186F

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

Color values

HEX#5C186F
RGBrgb(92, 24, 111)
HSLhsl(287, 64%, 26%)
HSVhsv(287, 78%, 44%)
CMYKcmyk(17.1%, 78.4%, 0%, 56.5%)
CIE-LABlab(23.92, 43.41, -35.42)
CIE-LCHlch(23.92, 56.03, 320.79°)
OKLaboklab(36.34% 0.1094 -0.0996)
OKLCHoklch(36.34% 0.148 317.7)
XYZxyz(7.6091, 4.0766, 15.4219)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C186F #2B6F18
analogous
#31186F #5C186F #6F1857
triadic
#5C186F #6F5C18 #186F5C
tetradic
#5C186F #6F3118 #2B6F18 #18576F
square
#5C186F #6F3118 #2B6F18 #18576F
split-complementary
#5C186F #576F18 #186F31
monochromatic
#150519 #320D3D #5C186F #8623A1 #AF2FD2

Accessibility & contrast

On white

11.57
#5C186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5C186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C186F
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C186F#FFFFFF#000000##FFFFFF
##5C186F1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c186f;
/* rgb */ color: rgb(92, 24, 111);
/* oklch */ color: oklch(36.3% 0.148 317.7);
Tailwind
colors: {
  custom: {
    50: '#8d5d99',
    500: '#5c186f',
    950: '#000000',
  },
}
SCSS
$custom: #5c186f;
$custom-light: #8d5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#5c186f",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 286.897,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36341,
    "c": 0.14798,
    "h": 317.7
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#5C186F
secondary
#55A53E
accent
#E74065
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5C186F

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

Preview Lab → · Contrast checker → · Palette generator →

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