#5C197A#5C197A

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

Color values

HEX#5C197A
RGBrgb(92, 25, 122)
HSLhsl(281, 66%, 29%)
HSVhsv(281, 80%, 48%)
CMYKcmyk(24.6%, 79.5%, 0%, 52.2%)
CIE-LABlab(24.88, 45.40, -40.92)
CIE-LCHlch(24.88, 61.12, 317.97°)
OKLaboklab(37.28% 0.1067 -0.1158)
OKLCHoklch(37.28% 0.157 312.7)
XYZxyz(8.2735, 4.3760, 18.8174)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C197A #377A19
analogous
#2C197A #5C197A #7A1968
triadic
#5C197A #7A5C19 #197A5C
tetradic
#5C197A #7A2C19 #377A19 #19687A
square
#5C197A #7A2C19 #377A19 #19687A
split-complementary
#5C197A #687A19 #197A2C
monochromatic
#130519 #360F47 #5C197A #8223AD #A537D6

Accessibility & contrast

On white

11.20
#5C197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C197A
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C197A#FFFFFF#000000##FFFFFF
##5C197A1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#0B3C78
Tritanopia (blue-blind)
#593049
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c197a;
/* rgb */ color: rgb(92, 25, 122);
/* oklch */ color: oklch(37.3% 0.157 312.7);
Tailwind
colors: {
  custom: {
    50: '#8e5ea1',
    500: '#5c197a',
    950: '#000000',
  },
}
SCSS
$custom: #5c197a;
$custom-light: #8e5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c197a",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 281.443,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37276,
    "c": 0.15743,
    "h": 312.7
  },
  "luminance": 0.04376
}

Semantic roles & 50–950 ramp

primary
#5C197A
secondary
#62AF40
accent
#E93F73
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C197A

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

Preview Lab → · Contrast checker → · Palette generator →

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