#5C1684#5C1684

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

Color values

HEX#5C1684
RGBrgb(92, 22, 132)
HSLhsl(278, 71%, 30%)
HSVhsv(278, 83%, 52%)
CMYKcmyk(30.3%, 83.3%, 0%, 48.2%)
CIE-LABlab(25.31, 48.70, -46.55)
CIE-LCHlch(25.31, 67.37, 316.30°)
OKLaboklab(37.83% 0.1069 -0.1323)
OKLCHoklch(37.83% 0.17 309)
XYZxyz(8.8645, 4.5152, 22.2299)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1684 #3E8416
analogous
#251684 #5C1684 #841675
triadic
#5C1684 #845C16 #16845C
tetradic
#5C1684 #842516 #3E8416 #167584
square
#5C1684 #842516 #3E8416 #167584
split-complementary
#5C1684 #758416 #168425
monochromatic
#13051B #370D50 #5C1684 #811FB8 #A137DE

Accessibility & contrast

On white

11.04
#5C1684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1684
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1684#FFFFFF#000000##FFFFFF
##5C16841.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#56334E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1684;
/* rgb */ color: rgb(92, 22, 132);
/* oklch */ color: oklch(37.8% 0.170 309.0);
Tailwind
colors: {
  custom: {
    50: '#8f5da9',
    500: '#5c1684',
    950: '#000000',
  },
}
SCSS
$custom: #5c1684;
$custom-light: #8f5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1684",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 278.182,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37828,
    "c": 0.17009,
    "h": 309
  },
  "luminance": 0.04515
}

Semantic roles & 50–950 ramp

primary
#5C1684
secondary
#6AB83D
accent
#EE3A7B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1684

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

Preview Lab → · Contrast checker → · Palette generator →

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