#5C177A#5C177A

#5C177A is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.160 H 312.8°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#5C177A
RGBrgb(92, 23, 122)
HSLhsl(282, 68%, 28%)
HSVhsv(282, 81%, 48%)
CMYKcmyk(24.6%, 81.1%, 0%, 52.2%)
CIE-LABlab(24.62, 46.14, -41.34)
CIE-LCHlch(24.62, 61.95, 318.14°)
OKLaboklab(37.09% 0.1085 -0.117)
OKLCHoklch(37.09% 0.16 312.8)
XYZxyz(8.2322, 4.2935, 18.8037)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C177A #357A17
analogous
#2A177A #5C177A #7A1766
triadic
#5C177A #7A5C17 #177A5C
tetradic
#5C177A #7A2A17 #357A17 #17667A
square
#5C177A #7A2A17 #357A17 #17667A
split-complementary
#5C177A #667A17 #177A2A
monochromatic
#13051A #350D47 #5C177A #8321AD #A633D9

Accessibility & contrast

On white

11.30
#5C177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5C177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C177A
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C177A#FFFFFF#000000##FFFFFF
##5C177A1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#083C78
Tritanopia (blue-blind)
#592F48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c177a;
/* rgb */ color: rgb(92, 23, 122);
/* oklch */ color: oklch(37.1% 0.160 312.8);
Tailwind
colors: {
  custom: {
    50: '#8e5da1',
    500: '#5c177a',
    950: '#000000',
  },
}
SCSS
$custom: #5c177a;
$custom-light: #8e5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c177a",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 281.818,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37094,
    "c": 0.15956,
    "h": 312.8
  },
  "luminance": 0.04293
}

Semantic roles & 50–950 ramp

primary
#5C177A
secondary
#60AF3E
accent
#EB3D72
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C177A

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

Preview Lab → · Contrast checker → · Palette generator →

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