#5C187A#5C187A

#5C187A is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.159 H 312.8°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#5C187A
RGBrgb(92, 24, 122)
HSLhsl(282, 67%, 29%)
HSVhsv(282, 80%, 48%)
CMYKcmyk(24.6%, 80.3%, 0%, 52.2%)
CIE-LABlab(24.75, 45.77, -41.14)
CIE-LCHlch(24.75, 61.54, 318.05°)
OKLaboklab(37.18% 0.1076 -0.1164)
OKLCHoklch(37.18% 0.159 312.8)
XYZxyz(8.2525, 4.3340, 18.8104)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C187A #367A18
analogous
#2B187A #5C187A #7A1867
triadic
#5C187A #7A5C18 #187A5C
tetradic
#5C187A #7A2B18 #367A18 #18677A
square
#5C187A #7A2B18 #367A18 #18677A
split-complementary
#5C187A #677A18 #187A2B
monochromatic
#13051A #350E47 #5C187A #8322AD #A635D7

Accessibility & contrast

On white

11.25
#5C187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5C187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C187A
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C187A#FFFFFF#000000##FFFFFF
##5C187A1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#093C78
Tritanopia (blue-blind)
#592F49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c187a;
/* rgb */ color: rgb(92, 24, 122);
/* oklch */ color: oklch(37.2% 0.159 312.8);
Tailwind
colors: {
  custom: {
    50: '#8e5ea1',
    500: '#5c187a',
    950: '#000000',
  },
}
SCSS
$custom: #5c187a;
$custom-light: #8e5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c187a",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 281.633,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37183,
    "c": 0.15851,
    "h": 312.8
  },
  "luminance": 0.04334
}

Semantic roles & 50–950 ramp

primary
#5C187A
secondary
#61AF3F
accent
#EA3E73
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C187A

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

Preview Lab → · Contrast checker → · Palette generator →

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