#5C186A#5C186A

#5C186A is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.0% C 0.143 H 320.2°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#5C186A
RGBrgb(92, 24, 106)
HSLhsl(290, 63%, 25%)
HSVhsv(290, 77%, 42%)
CMYKcmyk(13.2%, 77.4%, 0%, 58.4%)
CIE-LABlab(23.57, 42.37, -32.75)
CIE-LCHlch(23.57, 53.55, 322.30°)
OKLaboklab(35.98% 0.11 -0.0918)
OKLCHoklch(35.98% 0.143 320.2)
XYZxyz(7.3415, 3.9696, 14.0124)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C186A #266A18
analogous
#33186A #5C186A #6A184F
triadic
#5C186A #6A5C18 #186A5C
tetradic
#5C186A #6A3318 #266A18 #184F6A
square
#5C186A #6A3318 #266A18 #184F6A
split-complementary
#5C186A #4F6A18 #186A33
monochromatic
#160619 #310D38 #5C186A #87239C #B32FCE

Accessibility & contrast

On white

11.71
#5C186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5C186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C186A
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C186A#FFFFFF#000000##FFFFFF
##5C186A1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#203A68
Tritanopia (blue-blind)
#5C2840
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c186a;
/* rgb */ color: rgb(92, 24, 106);
/* oklch */ color: oklch(36.0% 0.143 320.2);
Tailwind
colors: {
  custom: {
    50: '#8d5d95',
    500: '#5c186a',
    950: '#000000',
  },
}
SCSS
$custom: #5c186a;
$custom-light: #8d5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#5c186a",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 289.756,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35978,
    "c": 0.14325,
    "h": 320.2
  },
  "luminance": 0.03969
}

Semantic roles & 50–950 ramp

primary
#5C186A
secondary
#4FA03E
accent
#E6425E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C186A

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

Preview Lab → · Contrast checker → · Palette generator →

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