#5C1880#5C1880

#5C1880 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.164 H 310.3°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#5C1880
RGBrgb(92, 24, 128)
HSLhsl(279, 68%, 30%)
HSVhsv(279, 81%, 50%)
CMYKcmyk(28.1%, 81.3%, 0%, 49.8%)
CIE-LABlab(25.22, 47.10, -44.17)
CIE-LCHlch(25.22, 64.57, 316.84°)
OKLaboklab(37.67% 0.1063 -0.1253)
OKLCHoklch(37.67% 0.164 310.3)
XYZxyz(8.6358, 4.4873, 20.8291)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1880 #3C8018
analogous
#281880 #5C1880 #801870
triadic
#5C1880 #805C18 #18805C
tetradic
#5C1880 #802818 #3C8018 #187080
square
#5C1880 #802818 #3C8018 #187080
split-complementary
#5C1880 #708018 #188028
monochromatic
#13051A #370E4C #5C1880 #8122B4 #A239DA

Accessibility & contrast

On white

11.07
#5C1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5C1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1880
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1880#FFFFFF#000000##FFFFFF
##5C18801.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1880;
/* rgb */ color: rgb(92, 24, 128);
/* oklch */ color: oklch(37.7% 0.164 310.3);
Tailwind
colors: {
  custom: {
    50: '#8e5ea6',
    500: '#5c1880',
    950: '#000000',
  },
}
SCSS
$custom: #5c1880;
$custom-light: #8e5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1880",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 279.231,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37666,
    "c": 0.16432,
    "h": 310.3
  },
  "luminance": 0.04487
}

Semantic roles & 50–950 ramp

primary
#5C1880
secondary
#68B440
accent
#EB3D79
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C1880

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

Preview Lab → · Contrast checker → · Palette generator →

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