#5C198A#5C198A

#5C198A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.173 H 306.5°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#5C198A
RGBrgb(92, 25, 138)
HSLhsl(276, 69%, 32%)
HSVhsv(276, 82%, 54%)
CMYKcmyk(33.3%, 81.9%, 0%, 45.9%)
CIE-LABlab(26.17, 49.01, -48.89)
CIE-LCHlch(26.17, 69.23, 315.07°)
OKLaboklab(38.59% 0.1029 -0.1392)
OKLCHoklch(38.59% 0.173 306.5)
XYZxyz(9.3477, 4.8056, 24.4750)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C198A #478A19
analogous
#23198A #5C198A #8A1980
triadic
#5C198A #8A5C19 #198A5C
tetradic
#5C198A #8A2319 #478A19 #19808A
square
#5C198A #8A2319 #478A19 #19808A
split-complementary
#5C198A #808A19 #198A23
monochromatic
#170622 #391056 #5C198A #7F22BE #9D41DD

Accessibility & contrast

On white

10.71
#5C198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5C198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C198A
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C198A#FFFFFF#000000##FFFFFF
##5C198A1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#543752
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c198a;
/* rgb */ color: rgb(92, 25, 138);
/* oklch */ color: oklch(38.6% 0.173 306.5);
Tailwind
colors: {
  custom: {
    50: '#8f5fad',
    500: '#5c198a',
    950: '#000000',
  },
}
SCSS
$custom: #5c198a;
$custom-light: #8f5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c198a",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 275.575,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3859,
    "c": 0.1731,
    "h": 306.5
  },
  "luminance": 0.04806
}

Semantic roles & 50–950 ramp

primary
#5C198A
secondary
#74BD42
accent
#EC3C84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C198A

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

Preview Lab → · Contrast checker → · Palette generator →

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