#5C177B#5C177B

#5C177B is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.161 H 312.4°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#5C177B
RGBrgb(92, 23, 123)
HSLhsl(281, 68%, 29%)
HSVhsv(281, 81%, 48%)
CMYKcmyk(25.2%, 81.3%, 0%, 51.8%)
CIE-LABlab(24.70, 46.36, -41.85)
CIE-LCHlch(24.70, 62.46, 317.93°)
OKLaboklab(37.17% 0.1083 -0.1185)
OKLCHoklch(37.17% 0.161 312.4)
XYZxyz(8.2945, 4.3184, 19.1317)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C177B #367B17
analogous
#2A177B #5C177B #7B1768
triadic
#5C177B #7B5C17 #177B5C
tetradic
#5C177B #7B2A17 #367B17 #17687B
square
#5C177B #7B2A17 #367B17 #17687B
split-complementary
#5C177B #687B17 #177B2A
monochromatic
#13051A #350D47 #5C177B #8321AF #A633D9

Accessibility & contrast

On white

11.27
#5C177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C177B
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C177B#FFFFFF#000000##FFFFFF
##5C177B1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#053C79
Tritanopia (blue-blind)
#582F49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c177b;
/* rgb */ color: rgb(92, 23, 123);
/* oklch */ color: oklch(37.2% 0.161 312.4);
Tailwind
colors: {
  custom: {
    50: '#8e5da2',
    500: '#5c177b',
    950: '#000000',
  },
}
SCSS
$custom: #5c177b;
$custom-light: #8e5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c177b",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 281.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37173,
    "c": 0.16052,
    "h": 312.4
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#5C177B
secondary
#61B03E
accent
#EB3C73
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C177B

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

Preview Lab → · Contrast checker → · Palette generator →

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