#5C1C99#5C1C99

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

Color values

HEX#5C1C99
RGBrgb(92, 28, 153)
HSLhsl(271, 69%, 35%)
HSVhsv(271, 82%, 60%)
CMYKcmyk(39.9%, 81.7%, 0%, 40%)
CIE-LABlab(27.86, 51.44, -55.41)
CIE-LCHlch(27.86, 75.61, 312.88°)
OKLaboklab(40.17% 0.0961 -0.1583)
OKLCHoklch(40.17% 0.185 301.3)
XYZxyz(10.5772, 5.4057, 30.6170)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1C99 #59991C
analogous
#1D1C99 #5C1C99 #991C97
triadic
#5C1C99 #995C1C #1C995C
tetradic
#5C1C99 #991D1C #59991C #1C9799
square
#5C1C99 #991D1C #59991C #1C9799
split-complementary
#5C1C99 #97991C #1C991D
monochromatic
#1E0932 #3D1365 #5C1C99 #7B25CD #9950DF

Accessibility & contrast

On white

10.09
#5C1C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5C1C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1C99
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1C99#FFFFFF#000000##FFFFFF
##5C1C991.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#4E3F5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c1c99;
/* rgb */ color: rgb(92, 28, 153);
/* oklch */ color: oklch(40.2% 0.185 301.3);
Tailwind
colors: {
  custom: {
    50: '#9161b8',
    500: '#5c1c99',
    950: '#000000',
  },
}
SCSS
$custom: #5c1c99;
$custom-light: #9161b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1c99",
  "rgb": {
    "r": 92,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 270.72,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40168,
    "c": 0.18525,
    "h": 301.3
  },
  "luminance": 0.05406
}

Semantic roles & 50–950 ramp

primary
#5C1C99
secondary
#87C24F
accent
#EC3C92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1C99

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

Preview Lab → · Contrast checker → · Palette generator →

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