#5C1381#5C1381

#5C1381 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.170 H 310.4°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#5C1381
RGBrgb(92, 19, 129)
HSLhsl(280, 74%, 29%)
HSVhsv(280, 85%, 51%)
CMYKcmyk(28.7%, 85.3%, 0%, 49.4%)
CIE-LABlab(24.72, 49.02, -45.61)
CIE-LCHlch(24.72, 66.95, 317.06°)
OKLaboklab(37.34% 0.11 -0.1295)
OKLCHoklch(37.34% 0.17 310.4)
XYZxyz(8.6082, 4.3262, 21.1462)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1381 #388113
analogous
#251381 #5C1381 #81136F
triadic
#5C1381 #815C13 #13815C
tetradic
#5C1381 #812513 #388113 #136F81
square
#5C1381 #812513 #388113 #136F81
split-complementary
#5C1381 #6F8113 #138125
monochromatic
#13041B #360B4C #5C1381 #821BB6 #A42EE0

Accessibility & contrast

On white

11.26
#5C1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5C1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1381
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1381#FFFFFF#000000##FFFFFF
##5C13811.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#57304C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c1381;
/* rgb */ color: rgb(92, 19, 129);
/* oklch */ color: oklch(37.3% 0.170 310.4);
Tailwind
colors: {
  custom: {
    50: '#8f5ca6',
    500: '#5c1381',
    950: '#000000',
  },
}
SCSS
$custom: #5c1381;
$custom-light: #8f5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1381",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 279.818,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37343,
    "c": 0.16993,
    "h": 310.4
  },
  "luminance": 0.04326
}

Semantic roles & 50–950 ramp

primary
#5C1381
secondary
#63B63A
accent
#F13775
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C1381

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

Preview Lab → · Contrast checker → · Palette generator →

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