#5C198C#5C198C

#5C198C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.175 H 305.8°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5C198C
RGBrgb(92, 25, 140)
HSLhsl(275, 70%, 32%)
HSVhsv(275, 82%, 55%)
CMYKcmyk(34.3%, 82.1%, 0%, 45.1%)
CIE-LABlab(26.34, 49.47, -49.86)
CIE-LCHlch(26.34, 70.24, 314.78°)
OKLaboklab(38.76% 0.1024 -0.142)
OKLCHoklch(38.76% 0.175 305.8)
XYZxyz(9.4938, 4.8641, 25.2446)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C198C #498C19
analogous
#23198C #5C198C #8C1982
triadic
#5C198C #8C5C19 #198C5C
tetradic
#5C198C #8C2319 #498C19 #19828C
square
#5C198C #8C2319 #498C19 #19828C
split-complementary
#5C198C #828C19 #198C23
monochromatic
#180624 #3A1058 #5C198C #7E22C0 #9D42DD

Accessibility & contrast

On white

10.64
#5C198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5C198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C198C
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C198C#FFFFFF#000000##FFFFFF
##5C198C1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#533853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c198c;
/* rgb */ color: rgb(92, 25, 140);
/* oklch */ color: oklch(38.8% 0.175 305.8);
Tailwind
colors: {
  custom: {
    50: '#8f5fae',
    500: '#5c198c',
    950: '#000000',
  },
}
SCSS
$custom: #5c198c;
$custom-light: #8f5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c198c",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 274.957,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38762,
    "c": 0.17507,
    "h": 305.8
  },
  "luminance": 0.04864
}

Semantic roles & 50–950 ramp

primary
#5C198C
secondary
#76BE43
accent
#ED3B85
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C198C

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

Preview Lab → · Contrast checker → · Palette generator →

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