#5C1C96#5C1C96

#5C1C96 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.182 H 302.2°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5C1C96
RGBrgb(92, 28, 150)
HSLhsl(271, 69%, 35%)
HSVhsv(271, 81%, 59%)
CMYKcmyk(38.7%, 81.3%, 0%, 41.2%)
CIE-LABlab(27.59, 50.72, -54.00)
CIE-LCHlch(27.59, 74.09, 313.21°)
OKLaboklab(39.9% 0.0971 -0.1542)
OKLCHoklch(39.9% 0.182 302.2)
XYZxyz(10.3326, 5.3078, 29.3284)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1C96 #56961C
analogous
#1F1C96 #5C1C96 #961C93
triadic
#5C1C96 #965C1C #1C965C
tetradic
#5C1C96 #961F1C #56961C #1C9396
square
#5C1C96 #961F1C #56961C #1C9396
split-complementary
#5C1C96 #93961C #1C961F
monochromatic
#1D092F #3C1262 #5C1C96 #7C26CA #9A4EDE

Accessibility & contrast

On white

10.19
#5C1C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5C1C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1C96
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1C96#FFFFFF#000000##FFFFFF
##5C1C961.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#4F3E5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c1c96;
/* rgb */ color: rgb(92, 28, 150);
/* oklch */ color: oklch(39.9% 0.182 302.2);
Tailwind
colors: {
  custom: {
    50: '#9061b6',
    500: '#5c1c96',
    950: '#000000',
  },
}
SCSS
$custom: #5c1c96;
$custom-light: #9061b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1c96",
  "rgb": {
    "r": 92,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 271.475,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39901,
    "c": 0.18222,
    "h": 302.2
  },
  "luminance": 0.05308
}

Semantic roles & 50–950 ramp

primary
#5C1C96
secondary
#84C14D
accent
#EB3C90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1C96

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

Preview Lab → · Contrast checker → · Palette generator →

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