#5C1A97#5C1A97

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

Color values

HEX#5C1A97
RGBrgb(92, 26, 151)
HSLhsl(272, 71%, 35%)
HSVhsv(272, 83%, 59%)
CMYKcmyk(39.1%, 82.8%, 0%, 40.8%)
CIE-LABlab(27.43, 51.70, -54.88)
CIE-LCHlch(27.43, 75.40, 313.29°)
OKLaboklab(39.82% 0.0983 -0.1568)
OKLCHoklch(39.82% 0.185 302.1)
XYZxyz(10.3676, 5.2484, 29.7390)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1A97 #55971A
analogous
#1E1A97 #5C1A97 #971A94
triadic
#5C1A97 #975C1A #1A975C
tetradic
#5C1A97 #971E1A #55971A #1A9497
square
#5C1A97 #971E1A #55971A #1A9497
split-complementary
#5C1A97 #94971A #1A971E
monochromatic
#1C082F #3C1163 #5C1A97 #7C23CB #9A4BE0

Accessibility & contrast

On white

10.25
#5C1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5C1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1A97
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1A97#FFFFFF#000000##FFFFFF
##5C1A971.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#4F3D5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c1a97;
/* rgb */ color: rgb(92, 26, 151);
/* oklch */ color: oklch(39.8% 0.185 302.1);
Tailwind
colors: {
  custom: {
    50: '#9060b7',
    500: '#5c1a97',
    950: '#000000',
  },
}
SCSS
$custom: #5c1a97;
$custom-light: #9060b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1a97",
  "rgb": {
    "r": 92,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 271.68,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39815,
    "c": 0.18504,
    "h": 302.1
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#5C1A97
secondary
#83C24B
accent
#ED3A8F
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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