#5C187D#5C187D

#5C187D is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.161 H 311.5°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#5C187D
RGBrgb(92, 24, 125)
HSLhsl(280, 68%, 29%)
HSVhsv(280, 81%, 49%)
CMYKcmyk(26.4%, 80.8%, 0%, 51%)
CIE-LABlab(24.98, 46.43, -42.66)
CIE-LCHlch(24.98, 63.06, 317.43°)
OKLaboklab(37.42% 0.107 -0.1209)
OKLCHoklch(37.42% 0.161 311.5)
XYZxyz(8.4412, 4.4095, 19.8045)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C187D #397D18
analogous
#2A187D #5C187D #7D186C
triadic
#5C187D #7D5C18 #187D5C
tetradic
#5C187D #7D2A18 #397D18 #186C7D
square
#5C187D #7D2A18 #397D18 #186C7D
split-complementary
#5C187D #6C7D18 #187D2A
monochromatic
#13051A #360E4A #5C187D #8222B0 #A437D9

Accessibility & contrast

On white

11.16
#5C187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C187D
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C187D#FFFFFF#000000##FFFFFF
##5C187D1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#013C7B
Tritanopia (blue-blind)
#58314A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c187d;
/* rgb */ color: rgb(92, 24, 125);
/* oklch */ color: oklch(37.4% 0.161 311.5);
Tailwind
colors: {
  custom: {
    50: '#8e5ea3',
    500: '#5c187d',
    950: '#000000',
  },
}
SCSS
$custom: #5c187d;
$custom-light: #8e5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c187d",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 280.396,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37423,
    "c": 0.16141,
    "h": 311.5
  },
  "luminance": 0.04409
}

Semantic roles & 50–950 ramp

primary
#5C187D
secondary
#65B23F
accent
#EB3D76
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C187D

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

Preview Lab → · Contrast checker → · Palette generator →

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