#5C1780#5C1780

#5C1780 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.165 H 310.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#5C1780
RGBrgb(92, 23, 128)
HSLhsl(279, 70%, 30%)
HSVhsv(279, 82%, 50%)
CMYKcmyk(28.1%, 82%, 0%, 49.8%)
CIE-LABlab(25.10, 47.46, -44.37)
CIE-LCHlch(25.10, 64.97, 316.93°)
OKLaboklab(37.58% 0.1072 -0.1259)
OKLCHoklch(37.58% 0.165 310.4)
XYZxyz(8.6155, 4.4468, 20.8224)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1780 #3B8017
analogous
#281780 #5C1780 #80176F
triadic
#5C1780 #805C17 #17805C
tetradic
#5C1780 #802817 #3B8017 #176F80
square
#5C1780 #802817 #3B8017 #176F80
split-complementary
#5C1780 #6F8017 #178028
monochromatic
#13051A #370E4C #5C1780 #8120B4 #A336DB

Accessibility & contrast

On white

11.11
#5C1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5C1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1780
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1780#FFFFFF#000000##FFFFFF
##5C17801.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.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: #5c1780;
/* rgb */ color: rgb(92, 23, 128);
/* oklch */ color: oklch(37.6% 0.165 310.4);
Tailwind
colors: {
  custom: {
    50: '#8f5ea6',
    500: '#5c1780',
    950: '#000000',
  },
}
SCSS
$custom: #5c1780;
$custom-light: #8f5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1780",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 279.429,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37579,
    "c": 0.16532,
    "h": 310.4
  },
  "luminance": 0.04447
}

Semantic roles & 50–950 ramp

primary
#5C1780
secondary
#67B43E
accent
#EC3B78
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C1780

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

Preview Lab → · Contrast checker → · Palette generator →

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