#5C1582#5C1582

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

Color values

HEX#5C1582
RGBrgb(92, 21, 130)
HSLhsl(279, 72%, 30%)
HSVhsv(279, 84%, 51%)
CMYKcmyk(29.2%, 83.8%, 0%, 49%)
CIE-LABlab(25.02, 48.59, -45.75)
CIE-LCHlch(25.02, 66.74, 316.73°)
OKLaboklab(37.58% 0.1083 -0.1299)
OKLCHoklch(37.58% 0.169 309.8)
XYZxyz(8.7103, 4.4235, 21.5097)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1582 #3B8215
analogous
#261582 #5C1582 #821571
triadic
#5C1582 #825C15 #15825C
tetradic
#5C1582 #822615 #3B8215 #157182
square
#5C1582 #822615 #3B8215 #157182
split-complementary
#5C1582 #718215 #158226
monochromatic
#13041A #370C4D #5C1582 #811EB7 #A333DE

Accessibility & contrast

On white

11.14
#5C1582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5C1582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1582
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1582#FFFFFF#000000##FFFFFF
##5C15821.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#56324D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c1582;
/* rgb */ color: rgb(92, 21, 130);
/* oklch */ color: oklch(37.6% 0.169 309.8);
Tailwind
colors: {
  custom: {
    50: '#8f5da7',
    500: '#5c1582',
    950: '#000000',
  },
}
SCSS
$custom: #5c1582;
$custom-light: #8f5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1582",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 130
  },
  "hsl": {
    "h": 279.083,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3758,
    "c": 0.16911,
    "h": 309.8
  },
  "luminance": 0.04423
}

Semantic roles & 50–950 ramp

primary
#5C1582
secondary
#67B73C
accent
#EF3978
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C1582

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

Preview Lab → · Contrast checker → · Palette generator →

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