#5C199C#5C199C

#5C199C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.191 H 300.7°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#5C199C
RGBrgb(92, 25, 156)
HSLhsl(271, 72%, 35%)
HSVhsv(271, 84%, 61%)
CMYKcmyk(41%, 84%, 0%, 38.8%)
CIE-LABlab(27.77, 53.23, -57.40)
CIE-LCHlch(27.77, 78.28, 312.85°)
OKLaboklab(40.19% 0.0973 -0.1642)
OKLCHoklch(40.19% 0.191 300.7)
XYZxyz(10.7605, 5.3708, 31.9158)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C199C #599C19
analogous
#1A199C #5C199C #9C199A
triadic
#5C199C #9C5C19 #199C5C
tetradic
#5C199C #9C1A19 #599C19 #199A9C
square
#5C199C #9C1A19 #599C19 #199A9C
split-complementary
#5C199C #9A9C19 #199C1A
monochromatic
#1E0833 #3D1167 #5C199C #7B21D1 #994DE2

Accessibility & contrast

On white

10.12
#5C199C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5C199C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C199C
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C199C#FFFFFF#000000##FFFFFF
##5C199C1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#4D3F5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c199c;
/* rgb */ color: rgb(92, 25, 156);
/* oklch */ color: oklch(40.2% 0.191 300.7);
Tailwind
colors: {
  custom: {
    50: '#9160ba',
    500: '#5c199c',
    950: '#000000',
  },
}
SCSS
$custom: #5c199c;
$custom-light: #9160ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5c199c",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 156
  },
  "hsl": {
    "h": 270.687,
    "s": 72.376,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40186,
    "c": 0.19084,
    "h": 300.7
  },
  "luminance": 0.05371
}

Semantic roles & 50–950 ramp

primary
#5C199C
secondary
#87C44C
accent
#EF3992
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5C199C

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

Preview Lab → · Contrast checker → · Palette generator →

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