#5C1996#5C1996

#5C1996 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.185 H 302.5°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#5C1996
RGBrgb(92, 25, 150)
HSLhsl(272, 71%, 34%)
HSVhsv(272, 83%, 59%)
CMYKcmyk(38.7%, 83.3%, 0%, 41.2%)
CIE-LABlab(27.22, 51.81, -54.61)
CIE-LCHlch(27.22, 75.28, 313.49°)
OKLaboklab(39.64% 0.0993 -0.156)
OKLCHoklch(39.64% 0.185 302.5)
XYZxyz(10.2650, 5.1726, 29.3059)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1996 #539619
analogous
#1D1996 #5C1996 #961992
triadic
#5C1996 #965C19 #19965C
tetradic
#5C1996 #961D19 #539619 #199296
square
#5C1996 #961D19 #539619 #199296
split-complementary
#5C1996 #929619 #19961D
monochromatic
#1C082D #3C1062 #5C1996 #7C22CA #9A49E1

Accessibility & contrast

On white

10.32
#5C1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5C1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1996
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1996#FFFFFF#000000##FFFFFF
##5C19961.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#4F3C59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c1996;
/* rgb */ color: rgb(92, 25, 150);
/* oklch */ color: oklch(39.6% 0.185 302.5);
Tailwind
colors: {
  custom: {
    50: '#9060b6',
    500: '#5c1996',
    950: '#000000',
  },
}
SCSS
$custom: #5c1996;
$custom-light: #9060b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1996",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 272.16,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39642,
    "c": 0.18492,
    "h": 302.5
  },
  "luminance": 0.05173
}

Semantic roles & 50–950 ramp

primary
#5C1996
secondary
#81C249
accent
#EE3A8D
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C1996

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

Preview Lab → · Contrast checker → · Palette generator →

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