#5C3198#5C3198

#5C3198 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.160 H 298.5°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5C3198
RGBrgb(92, 49, 152)
HSLhsl(265, 51%, 39%)
HSVhsv(265, 68%, 60%)
CMYKcmyk(39.5%, 67.8%, 0%, 40.4%)
CIE-LABlab(31.20, 41.50, -49.35)
CIE-LCHlch(31.20, 64.48, 310.06°)
OKLaboklab(42.51% 0.0763 -0.1407)
OKLCHoklch(42.51% 0.16 298.5)
XYZxyz(11.1780, 6.7388, 30.4115)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3198 #6D9831
analogous
#313998 #5C3198 #903198
triadic
#5C3198 #985C31 #31985C
tetradic
#5C3198 #983139 #6D9831 #319890
square
#5C3198 #983139 #6D9831 #319890
split-complementary
#5C3198 #989031 #399831
monochromatic
#24133B #40226A #5C3198 #7944C3 #9A72D2

Accessibility & contrast

On white

8.94
#5C3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5C3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3198
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3198#FFFFFF#000000##FFFFFF
##5C31981.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#4E4960
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c3198;
/* rgb */ color: rgb(92, 49, 152);
/* oklch */ color: oklch(42.5% 0.160 298.5);
Tailwind
colors: {
  custom: {
    50: '#8f6cb7',
    500: '#5c3198',
    950: '#000000',
  },
}
SCSS
$custom: #5c3198;
$custom-light: #8f6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3198",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 265.049,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42507,
    "c": 0.16004,
    "h": 298.5
  },
  "luminance": 0.06739
}

Semantic roles & 50–950 ramp

primary
#5C3198
secondary
#99B96B
accent
#DB4DA0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C3198

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

Preview Lab → · Contrast checker → · Palette generator →

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