#5C197D#5C197D

#5C197D is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.5% C 0.160 H 311.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#5C197D
RGBrgb(92, 25, 125)
HSLhsl(280, 67%, 29%)
HSVhsv(280, 80%, 49%)
CMYKcmyk(26.4%, 80%, 0%, 51%)
CIE-LABlab(25.11, 46.06, -42.45)
CIE-LCHlch(25.11, 62.64, 317.34°)
OKLaboklab(37.51% 0.1061 -0.1203)
OKLCHoklch(37.51% 0.16 311.4)
XYZxyz(8.4622, 4.4515, 19.8115)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C197D #3A7D19
analogous
#2A197D #5C197D #7D196C
triadic
#5C197D #7D5C19 #197D5C
tetradic
#5C197D #7D2A19 #3A7D19 #196C7D
square
#5C197D #7D2A19 #3A7D19 #196C7D
split-complementary
#5C197D #6C7D19 #197D2A
monochromatic
#13051A #360F4A #5C197D #8223B0 #A339D7

Accessibility & contrast

On white

11.11
#5C197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5C197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C197D
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C197D#FFFFFF#000000##FFFFFF
##5C197D1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#033D7B
Tritanopia (blue-blind)
#58314B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c197d;
/* rgb */ color: rgb(92, 25, 125);
/* oklch */ color: oklch(37.5% 0.160 311.4);
Tailwind
colors: {
  custom: {
    50: '#8e5ea3',
    500: '#5c197d',
    950: '#000000',
  },
}
SCSS
$custom: #5c197d;
$custom-light: #8e5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c197d",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 280.2,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37514,
    "c": 0.16036,
    "h": 311.4
  },
  "luminance": 0.04451
}

Semantic roles & 50–950 ramp

primary
#5C197D
secondary
#66B140
accent
#EA3E77
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C197D

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

Preview Lab → · Contrast checker → · Palette generator →

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