#5C187C#5C187C

#5C187C is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.160 H 311.9°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#5C187C
RGBrgb(92, 24, 124)
HSLhsl(281, 68%, 29%)
HSVhsv(281, 81%, 49%)
CMYKcmyk(25.8%, 80.6%, 0%, 51.4%)
CIE-LABlab(24.90, 46.22, -42.15)
CIE-LCHlch(24.90, 62.55, 317.63°)
OKLaboklab(37.34% 0.1072 -0.1194)
OKLCHoklch(37.34% 0.16 311.9)
XYZxyz(8.3777, 4.3840, 19.4698)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C187C #387C18
analogous
#2A187C #5C187C #7C186A
triadic
#5C187C #7C5C18 #187C5C
tetradic
#5C187C #7C2A18 #387C18 #186A7C
square
#5C187C #7C2A18 #387C18 #186A7C
split-complementary
#5C187C #6A7C18 #187C2A
monochromatic
#13051A #360E49 #5C187C #8222AF #A436D8

Accessibility & contrast

On white

11.19
#5C187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5C187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C187C
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C187C#FFFFFF#000000##FFFFFF
##5C187C1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#043C7A
Tritanopia (blue-blind)
#58304A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c187c;
/* rgb */ color: rgb(92, 24, 124);
/* oklch */ color: oklch(37.3% 0.160 311.9);
Tailwind
colors: {
  custom: {
    50: '#8e5ea3',
    500: '#5c187c',
    950: '#000000',
  },
}
SCSS
$custom: #5c187c;
$custom-light: #8e5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c187c",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 280.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37342,
    "c": 0.16044,
    "h": 311.9
  },
  "luminance": 0.04384
}

Semantic roles & 50–950 ramp

primary
#5C187C
secondary
#63B13F
accent
#EA3D75
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C187C

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

Preview Lab → · Contrast checker → · Palette generator →

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