#5C1981#5C1981

#5C1981 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.164 H 309.8°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5C1981
RGBrgb(92, 25, 129)
HSLhsl(279, 68%, 30%)
HSVhsv(279, 81%, 51%)
CMYKcmyk(28.7%, 80.6%, 0%, 49.4%)
CIE-LABlab(25.43, 46.96, -44.46)
CIE-LCHlch(25.43, 64.67, 316.56°)
OKLaboklab(37.84% 0.1052 -0.1262)
OKLCHoklch(37.84% 0.164 309.8)
XYZxyz(8.7229, 4.5557, 21.1845)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1981 #3E8119
analogous
#281981 #5C1981 #811972
triadic
#5C1981 #815C19 #19815C
tetradic
#5C1981 #812819 #3E8119 #197281
square
#5C1981 #812819 #3E8119 #197281
split-complementary
#5C1981 #728119 #198128
monochromatic
#13051A #370F4E #5C1981 #8123B4 #A13BD9

Accessibility & contrast

On white

10.99
#5C1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5C1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1981
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1981#FFFFFF#000000##FFFFFF
##5C19811.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#57334D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1981;
/* rgb */ color: rgb(92, 25, 129);
/* oklch */ color: oklch(37.8% 0.164 309.8);
Tailwind
colors: {
  custom: {
    50: '#8f5ea6',
    500: '#5c1981',
    950: '#000000',
  },
}
SCSS
$custom: #5c1981;
$custom-light: #8f5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1981",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 278.654,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37837,
    "c": 0.16427,
    "h": 309.8
  },
  "luminance": 0.04556
}

Semantic roles & 50–950 ramp

primary
#5C1981
secondary
#6AB541
accent
#EA3D7B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C1981

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

Preview Lab → · Contrast checker → · Palette generator →

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