#5C1784#5C1784

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

Color values

HEX#5C1784
RGBrgb(92, 23, 132)
HSLhsl(278, 70%, 30%)
HSVhsv(278, 83%, 52%)
CMYKcmyk(30.3%, 82.6%, 0%, 48.2%)
CIE-LABlab(25.43, 48.36, -46.36)
CIE-LCHlch(25.43, 66.99, 316.21°)
OKLaboklab(37.91% 0.1061 -0.1317)
OKLCHoklch(37.91% 0.169 308.9)
XYZxyz(8.8840, 4.5542, 22.2364)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1784 #3F8417
analogous
#261784 #5C1784 #841775
triadic
#5C1784 #845C17 #17845C
tetradic
#5C1784 #842617 #3F8417 #177584
square
#5C1784 #842617 #3F8417 #177584
split-complementary
#5C1784 #758417 #178426
monochromatic
#13051C #380E50 #5C1784 #8020B8 #A039DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C1784#FFFFFF#000000##FFFFFF
##5C17841.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)
#003A87
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#56334E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1784;
/* rgb */ color: rgb(92, 23, 132);
/* oklch */ color: oklch(37.9% 0.169 308.9);
Tailwind
colors: {
  custom: {
    50: '#8f5ea9',
    500: '#5c1784',
    950: '#000000',
  },
}
SCSS
$custom: #5c1784;
$custom-light: #8f5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1784",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 277.982,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37911,
    "c": 0.16916,
    "h": 308.9
  },
  "luminance": 0.04554
}

Semantic roles & 50–950 ramp

primary
#5C1784
secondary
#6BB83F
accent
#ED3B7C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1784

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

Preview Lab → · Contrast checker → · Palette generator →

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