#5C197C#5C197C

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

Color values

HEX#5C197C
RGBrgb(92, 25, 124)
HSLhsl(281, 66%, 29%)
HSVhsv(281, 80%, 49%)
CMYKcmyk(25.8%, 79.8%, 0%, 51.4%)
CIE-LABlab(25.03, 45.84, -41.94)
CIE-LCHlch(25.03, 62.13, 317.54°)
OKLaboklab(37.43% 0.1063 -0.1188)
OKLCHoklch(37.43% 0.159 311.8)
XYZxyz(8.3987, 4.4260, 19.4768)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C197C #397C19
analogous
#2B197C #5C197C #7C196B
triadic
#5C197C #7C5C19 #197C5C
tetradic
#5C197C #7C2B19 #397C19 #196B7C
square
#5C197C #7C2B19 #397C19 #196B7C
split-complementary
#5C197C #6B7C19 #197C2B
monochromatic
#130519 #360F49 #5C197C #8223AF #A438D7

Accessibility & contrast

On white

11.14
#5C197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C197C
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C197C#FFFFFF#000000##FFFFFF
##5C197C1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#063D7A
Tritanopia (blue-blind)
#58314A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c197c;
/* rgb */ color: rgb(92, 25, 124);
/* oklch */ color: oklch(37.4% 0.159 311.8);
Tailwind
colors: {
  custom: {
    50: '#8e5ea3',
    500: '#5c197c',
    950: '#000000',
  },
}
SCSS
$custom: #5c197c;
$custom-light: #8e5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c197c",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 280.606,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37434,
    "c": 0.15939,
    "h": 311.8
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#5C197C
secondary
#65B040
accent
#E93E76
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C197C

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

Preview Lab → · Contrast checker → · Palette generator →

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