#5C186D#5C186D

#5C186D is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.146 H 318.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#5C186D
RGBrgb(92, 24, 109)
HSLhsl(288, 64%, 26%)
HSVhsv(288, 78%, 43%)
CMYKcmyk(15.6%, 78%, 0%, 57.3%)
CIE-LABlab(23.78, 42.99, -34.36)
CIE-LCHlch(23.78, 55.03, 321.37°)
OKLaboklab(36.2% 0.1097 -0.0965)
OKLCHoklch(36.2% 0.146 318.7)
XYZxyz(7.5002, 4.0331, 14.8484)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C186D #296D18
analogous
#31186D #5C186D #6D1853
triadic
#5C186D #6D5C18 #186D5C
tetradic
#5C186D #6D3118 #296D18 #18536D
square
#5C186D #6D3118 #296D18 #18536D
split-complementary
#5C186D #536D18 #186D31
monochromatic
#150619 #320D3B #5C186D #86239F #B12ED1

Accessibility & contrast

On white

11.62
#5C186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C186D
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C186D#FFFFFF#000000##FFFFFF
##5C186D1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#1D3B6B
Tritanopia (blue-blind)
#5C2A41
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5c186d;
/* rgb */ color: rgb(92, 24, 109);
/* oklch */ color: oklch(36.2% 0.146 318.7);
Tailwind
colors: {
  custom: {
    50: '#8d5d97',
    500: '#5c186d',
    950: '#000000',
  },
}
SCSS
$custom: #5c186d;
$custom-light: #8d5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5c186d",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 288,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36195,
    "c": 0.14608,
    "h": 318.7
  },
  "luminance": 0.04033
}

Semantic roles & 50–950 ramp

primary
#5C186D
secondary
#52A33E
accent
#E74162
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050D
muted
#7D797E

Preview Lab

Preview with #5C186D

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

Preview Lab → · Contrast checker → · Palette generator →

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