#5C197B#5C197B

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

Color values

HEX#5C197B
RGBrgb(92, 25, 123)
HSLhsl(281, 66%, 29%)
HSVhsv(281, 80%, 48%)
CMYKcmyk(25.2%, 79.7%, 0%, 51.8%)
CIE-LABlab(24.95, 45.62, -41.43)
CIE-LCHlch(24.95, 61.63, 317.75°)
OKLaboklab(37.35% 0.1065 -0.1173)
OKLCHoklch(37.35% 0.158 312.2)
XYZxyz(8.3358, 4.4009, 19.1454)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C197B #387B19
analogous
#2B197B #5C197B #7B1969
triadic
#5C197B #7B5C19 #197B5C
tetradic
#5C197B #7B2B19 #387B19 #19697B
square
#5C197B #7B2B19 #387B19 #19697B
split-complementary
#5C197B #697B19 #197B2B
monochromatic
#130519 #360F48 #5C197B #8223AE #A438D7

Accessibility & contrast

On white

11.17
#5C197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C197B
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C197B#FFFFFF#000000##FFFFFF
##5C197B1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#083C79
Tritanopia (blue-blind)
#583049
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c197b;
/* rgb */ color: rgb(92, 25, 123);
/* oklch */ color: oklch(37.4% 0.158 312.2);
Tailwind
colors: {
  custom: {
    50: '#8e5ea2',
    500: '#5c197b',
    950: '#000000',
  },
}
SCSS
$custom: #5c197b;
$custom-light: #8e5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c197b",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 281.02,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37355,
    "c": 0.15841,
    "h": 312.2
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#5C197B
secondary
#63AF40
accent
#E93F75
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C197B

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

Preview Lab → · Contrast checker → · Palette generator →

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