#5C177D#5C177D

#5C177D is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.162 H 311.6°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#5C177D
RGBrgb(92, 23, 125)
HSLhsl(281, 69%, 29%)
HSVhsv(281, 82%, 49%)
CMYKcmyk(26.4%, 81.6%, 0%, 51%)
CIE-LABlab(24.86, 46.80, -42.86)
CIE-LCHlch(24.86, 63.46, 317.51°)
OKLaboklab(37.33% 0.1079 -0.1215)
OKLCHoklch(37.33% 0.162 311.6)
XYZxyz(8.4210, 4.3690, 19.7978)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C177D #387D17
analogous
#29177D #5C177D #7D176B
triadic
#5C177D #7D5C17 #177D5C
tetradic
#5C177D #7D2917 #387D17 #176B7D
square
#5C177D #7D2917 #387D17 #176B7D
split-complementary
#5C177D #6B7D17 #177D29
monochromatic
#13051A #360D49 #5C177D #8221B1 #A435DA

Accessibility & contrast

On white

11.21
#5C177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5C177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C177D
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C177D#FFFFFF#000000##FFFFFF
##5C177D1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#58304A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c177d;
/* rgb */ color: rgb(92, 23, 125);
/* oklch */ color: oklch(37.3% 0.162 311.6);
Tailwind
colors: {
  custom: {
    50: '#8e5da3',
    500: '#5c177d',
    950: '#000000',
  },
}
SCSS
$custom: #5c177d;
$custom-light: #8e5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c177d",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 280.588,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37334,
    "c": 0.16243,
    "h": 311.6
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#5C177D
secondary
#63B23E
accent
#EC3C75
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C177D

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

Preview Lab → · Contrast checker → · Palette generator →

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