#5C177F#5C177F

#5C177F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.164 H 310.8°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#5C177F
RGBrgb(92, 23, 127)
HSLhsl(280, 69%, 29%)
HSVhsv(280, 82%, 50%)
CMYKcmyk(27.6%, 81.9%, 0%, 50.2%)
CIE-LABlab(25.02, 47.24, -43.87)
CIE-LCHlch(25.02, 64.47, 317.12°)
OKLaboklab(37.5% 0.1074 -0.1244)
OKLCHoklch(37.5% 0.164 310.8)
XYZxyz(8.5501, 4.4206, 20.4774)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C177F #3A7F17
analogous
#28177F #5C177F #7F176E
triadic
#5C177F #7F5C17 #177F5C
tetradic
#5C177F #7F2817 #3A7F17 #176E7F
square
#5C177F #7F2817 #3A7F17 #176E7F
split-complementary
#5C177F #6E7F17 #177F28
monochromatic
#13051A #360E4B #5C177F #8220B3 #A336DB

Accessibility & contrast

On white

11.15
#5C177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C177F
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C177F#FFFFFF#000000##FFFFFF
##5C177F1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c177f;
/* rgb */ color: rgb(92, 23, 127);
/* oklch */ color: oklch(37.5% 0.164 310.8);
Tailwind
colors: {
  custom: {
    50: '#8e5da5',
    500: '#5c177f',
    950: '#000000',
  },
}
SCSS
$custom: #5c177f;
$custom-light: #8e5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c177f",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 279.808,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37497,
    "c": 0.16436,
    "h": 310.8
  },
  "luminance": 0.0442
}

Semantic roles & 50–950 ramp

primary
#5C177F
secondary
#66B43E
accent
#EC3C77
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C177F

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

Preview Lab → · Contrast checker → · Palette generator →

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