#5C186C#5C186C

#5C186C is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.145 H 319.1°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#5C186C
RGBrgb(92, 24, 108)
HSLhsl(289, 64%, 26%)
HSVhsv(289, 78%, 42%)
CMYKcmyk(14.8%, 77.8%, 0%, 57.6%)
CIE-LABlab(23.71, 42.79, -33.82)
CIE-LCHlch(23.71, 54.54, 321.67°)
OKLaboklab(36.12% 0.1098 -0.0949)
OKLCHoklch(36.12% 0.145 319.1)
XYZxyz(7.4467, 4.0117, 14.5665)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C186C #286C18
analogous
#32186C #5C186C #6C1852
triadic
#5C186C #6C5C18 #186C5C
tetradic
#5C186C #6C3218 #286C18 #18526C
square
#5C186C #6C3218 #286C18 #18526C
split-complementary
#5C186C #526C18 #186C32
monochromatic
#150619 #310D3A #5C186C #87239E #B12ED0

Accessibility & contrast

On white

11.65
#5C186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5C186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C186C
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C186C#FFFFFF#000000##FFFFFF
##5C186C1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#1E3B6A
Tritanopia (blue-blind)
#5C2941
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c186c;
/* rgb */ color: rgb(92, 24, 108);
/* oklch */ color: oklch(36.1% 0.145 319.1);
Tailwind
colors: {
  custom: {
    50: '#8d5d97',
    500: '#5c186c',
    950: '#000000',
  },
}
SCSS
$custom: #5c186c;
$custom-light: #8d5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5c186c",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 288.571,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36122,
    "c": 0.14513,
    "h": 319.1
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#5C186C
secondary
#51A23E
accent
#E74161
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050D
muted
#7D797E

Preview Lab

Preview with #5C186C

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

Preview Lab → · Contrast checker → · Palette generator →

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