#5C198E#5C198E

#5C198E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.177 H 305.1°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5C198E
RGBrgb(92, 25, 142)
HSLhsl(274, 70%, 33%)
HSVhsv(274, 82%, 56%)
CMYKcmyk(35.2%, 82.4%, 0%, 44.3%)
CIE-LABlab(26.52, 49.94, -50.82)
CIE-LCHlch(26.52, 71.25, 314.50°)
OKLaboklab(38.93% 0.1018 -0.1449)
OKLCHoklch(38.93% 0.177 305.1)
XYZxyz(9.6426, 4.9236, 26.0283)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C198E #4B8E19
analogous
#21198E #5C198E #8E1985
triadic
#5C198E #8E5C19 #198E5C
tetradic
#5C198E #8E2119 #4B8E19 #19858E
square
#5C198E #8E2119 #4B8E19 #19858E
split-complementary
#5C198E #858E19 #198E21
monochromatic
#190726 #3A105A #5C198E #7E22C2 #9C43DE

Accessibility & contrast

On white

10.58
#5C198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5C198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C198E
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C198E#FFFFFF#000000##FFFFFF
##5C198E1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#523954
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c198e;
/* rgb */ color: rgb(92, 25, 142);
/* oklch */ color: oklch(38.9% 0.177 305.1);
Tailwind
colors: {
  custom: {
    50: '#905fb0',
    500: '#5c198e',
    950: '#000000',
  },
}
SCSS
$custom: #5c198e;
$custom-light: #905fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c198e",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 274.359,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38935,
    "c": 0.17704,
    "h": 305.1
  },
  "luminance": 0.04924
}

Semantic roles & 50–950 ramp

primary
#5C198E
secondary
#78BF44
accent
#ED3B87
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C198E

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

Preview Lab → · Contrast checker → · Palette generator →

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