#5C1980#5C1980

#5C1980 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.163 H 310.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5C1980
RGBrgb(92, 25, 128)
HSLhsl(279, 67%, 30%)
HSVhsv(279, 80%, 50%)
CMYKcmyk(28.1%, 80.5%, 0%, 49.8%)
CIE-LABlab(25.35, 46.73, -43.96)
CIE-LCHlch(25.35, 64.16, 316.75°)
OKLaboklab(37.76% 0.1054 -0.1247)
OKLCHoklch(37.76% 0.163 310.2)
XYZxyz(8.6568, 4.5293, 20.8361)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1980 #3D8019
analogous
#281980 #5C1980 #801971
triadic
#5C1980 #805C19 #19805C
tetradic
#5C1980 #802819 #3D8019 #197180
square
#5C1980 #802819 #3D8019 #197180
split-complementary
#5C1980 #718019 #198028
monochromatic
#12051A #370F4D #5C1980 #8123B3 #A13BD9

Accessibility & contrast

On white

11.02
#5C1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1980
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1980#FFFFFF#000000##FFFFFF
##5C19801.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#57334C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1980;
/* rgb */ color: rgb(92, 25, 128);
/* oklch */ color: oklch(37.8% 0.163 310.2);
Tailwind
colors: {
  custom: {
    50: '#8e5ea6',
    500: '#5c1980',
    950: '#000000',
  },
}
SCSS
$custom: #5c1980;
$custom-light: #8e5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1980",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 279.029,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.37756,
    "c": 0.16329,
    "h": 310.2
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#5C1980
secondary
#69B441
accent
#EA3E7A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C1980

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

Preview Lab → · Contrast checker → · Palette generator →

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