#5C177E#5C177E

#5C177E is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.163 H 311.2°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#5C177E
RGBrgb(92, 23, 126)
HSLhsl(280, 69%, 29%)
HSVhsv(280, 82%, 49%)
CMYKcmyk(27%, 81.7%, 0%, 50.6%)
CIE-LABlab(24.94, 47.02, -43.37)
CIE-LCHlch(24.94, 63.97, 317.31°)
OKLaboklab(37.42% 0.1076 -0.1229)
OKLCHoklch(37.42% 0.163 311.2)
XYZxyz(8.4852, 4.3947, 20.1359)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C177E #397E17
analogous
#28177E #5C177E #7E176D
triadic
#5C177E #7E5C17 #177E5C
tetradic
#5C177E #7E2817 #397E17 #176D7E
square
#5C177E #7E2817 #397E17 #176D7E
split-complementary
#5C177E #6D7E17 #177E28
monochromatic
#13051A #360E4A #5C177E #8220B2 #A435DA

Accessibility & contrast

On white

11.18
#5C177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C177E
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C177E#FFFFFF#000000##FFFFFF
##5C177E1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#57314B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c177e;
/* rgb */ color: rgb(92, 23, 126);
/* oklch */ color: oklch(37.4% 0.163 311.2);
Tailwind
colors: {
  custom: {
    50: '#8e5da4',
    500: '#5c177e',
    950: '#000000',
  },
}
SCSS
$custom: #5c177e;
$custom-light: #8e5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c177e",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 280.194,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37415,
    "c": 0.16339,
    "h": 311.2
  },
  "luminance": 0.04394
}

Semantic roles & 50–950 ramp

primary
#5C177E
secondary
#65B33E
accent
#EC3C76
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C177E

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

Preview Lab → · Contrast checker → · Palette generator →

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