#5C1779#5C1779

#5C1779 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.159 H 313.3°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#5C1779
RGBrgb(92, 23, 121)
HSLhsl(282, 68%, 28%)
HSVhsv(282, 81%, 47%)
CMYKcmyk(24%, 81%, 0%, 52.5%)
CIE-LABlab(24.54, 45.92, -40.83)
CIE-LCHlch(24.54, 61.45, 318.36°)
OKLaboklab(37.01% 0.1087 -0.1155)
OKLCHoklch(37.01% 0.159 313.3)
XYZxyz(8.1706, 4.2688, 18.4790)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1779 #347917
analogous
#2B1779 #5C1779 #791765
triadic
#5C1779 #795C17 #17795C
tetradic
#5C1779 #792B17 #347917 #176579
square
#5C1779 #792B17 #347917 #176579
split-complementary
#5C1779 #657917 #17792B
monochromatic
#14051A #350D46 #5C1779 #8321AC #A732D8

Accessibility & contrast

On white

11.33
#5C1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5C1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1779
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1779#FFFFFF#000000##FFFFFF
##5C17791.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#0A3C77
Tritanopia (blue-blind)
#592E48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c1779;
/* rgb */ color: rgb(92, 23, 121);
/* oklch */ color: oklch(37.0% 0.159 313.3);
Tailwind
colors: {
  custom: {
    50: '#8e5da0',
    500: '#5c1779',
    950: '#000000',
  },
}
SCSS
$custom: #5c1779;
$custom-light: #8e5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1779",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 282.245,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37014,
    "c": 0.15861,
    "h": 313.3
  },
  "luminance": 0.04269
}

Semantic roles & 50–950 ramp

primary
#5C1779
secondary
#5FAE3E
accent
#EB3D70
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5C1779

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

Preview Lab → · Contrast checker → · Palette generator →

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