#5C186B#5C186B

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

Color values

HEX#5C186B
RGBrgb(92, 24, 107)
HSLhsl(289, 63%, 26%)
HSVhsv(289, 78%, 42%)
CMYKcmyk(14%, 77.6%, 0%, 58%)
CIE-LABlab(23.64, 42.58, -33.29)
CIE-LCHlch(23.64, 54.05, 321.98°)
OKLaboklab(36.05% 0.1099 -0.0934)
OKLCHoklch(36.05% 0.144 319.6)
XYZxyz(7.3938, 3.9905, 14.2878)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C186B #276B18
analogous
#32186B #5C186B #6B1850
triadic
#5C186B #6B5C18 #186B5C
tetradic
#5C186B #6B3218 #276B18 #18506B
square
#5C186B #6B3218 #276B18 #18506B
split-complementary
#5C186B #506B18 #186B32
monochromatic
#150619 #310D39 #5C186B #87239D #B22ECF

Accessibility & contrast

On white

11.68
#5C186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C186B
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C186B#FFFFFF#000000##FFFFFF
##5C186B1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#1F3B69
Tritanopia (blue-blind)
#5C2940
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c186b;
/* rgb */ color: rgb(92, 24, 107);
/* oklch */ color: oklch(36.0% 0.144 319.6);
Tailwind
colors: {
  custom: {
    50: '#8d5d96',
    500: '#5c186b',
    950: '#000000',
  },
}
SCSS
$custom: #5c186b;
$custom-light: #8d5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5c186b",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 289.157,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3605,
    "c": 0.14419,
    "h": 319.6
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#5C186B
secondary
#50A13E
accent
#E6415F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C186B

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

Preview Lab → · Contrast checker → · Palette generator →

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