#5C178D#5C178D

#5C178D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.178 H 305.6°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#5C178D
RGBrgb(92, 23, 141)
HSLhsl(275, 72%, 32%)
HSVhsv(275, 84%, 55%)
CMYKcmyk(34.8%, 83.7%, 0%, 44.7%)
CIE-LABlab(26.19, 50.40, -50.73)
CIE-LCHlch(26.19, 71.51, 314.81°)
OKLaboklab(38.68% 0.1036 -0.1446)
OKLCHoklch(38.68% 0.178 305.6)
XYZxyz(9.5267, 4.8113, 25.6209)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C178D #488D17
analogous
#21178D #5C178D #8D1783
triadic
#5C178D #8D5C17 #178D5C
tetradic
#5C178D #8D2117 #488D17 #17838D
square
#5C178D #8D2117 #488D17 #17838D
split-complementary
#5C178D #838D17 #178D21
monochromatic
#170624 #3A0E58 #5C178D #7E20C2 #9D3FE0

Accessibility & contrast

On white

10.70
#5C178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5C178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C178D
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C178D#FFFFFF#000000##FFFFFF
##5C178D1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#533853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c178d;
/* rgb */ color: rgb(92, 23, 141);
/* oklch */ color: oklch(38.7% 0.178 305.6);
Tailwind
colors: {
  custom: {
    50: '#905eaf',
    500: '#5c178d',
    950: '#000000',
  },
}
SCSS
$custom: #5c178d;
$custom-light: #905eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c178d",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 275.085,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38682,
    "c": 0.17786,
    "h": 305.6
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#5C178D
secondary
#75C040
accent
#EF3985
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C178D

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

Preview Lab → · Contrast checker → · Palette generator →

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