#5C178C#5C178C

#5C178C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.177 H 306.0°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5C178C
RGBrgb(92, 23, 140)
HSLhsl(275, 72%, 32%)
HSVhsv(275, 84%, 55%)
CMYKcmyk(34.3%, 83.6%, 0%, 45.1%)
CIE-LABlab(26.10, 50.17, -50.25)
CIE-LCHlch(26.10, 71.01, 314.96°)
OKLaboklab(38.59% 0.1039 -0.1432)
OKLCHoklch(38.59% 0.177 306)
XYZxyz(9.4526, 4.7816, 25.2308)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C178C #478C17
analogous
#22178C #5C178C #8C1782
triadic
#5C178C #8C5C17 #178C5C
tetradic
#5C178C #8C2217 #478C17 #17828C
square
#5C178C #8C2217 #478C17 #17828C
split-complementary
#5C178C #828C17 #178C22
monochromatic
#170623 #390E57 #5C178C #7F20C1 #9D3EDF

Accessibility & contrast

On white

10.73
#5C178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C178C
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C178C#FFFFFF#000000##FFFFFF
##5C178C1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#533753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c178c;
/* rgb */ color: rgb(92, 23, 140);
/* oklch */ color: oklch(38.6% 0.177 306.0);
Tailwind
colors: {
  custom: {
    50: '#905eae',
    500: '#5c178c',
    950: '#000000',
  },
}
SCSS
$custom: #5c178c;
$custom-light: #905eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c178c",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 275.385,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38594,
    "c": 0.17689,
    "h": 306
  },
  "luminance": 0.04782
}

Semantic roles & 50–950 ramp

primary
#5C178C
secondary
#74BF3F
accent
#EF3984
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C178C

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

Preview Lab → · Contrast checker → · Palette generator →

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