#5C178E#5C178E

#5C178E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.179 H 305.3°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5C178E
RGBrgb(92, 23, 142)
HSLhsl(275, 72%, 32%)
HSVhsv(275, 84%, 56%)
CMYKcmyk(35.2%, 83.8%, 0%, 44.3%)
CIE-LABlab(26.28, 50.63, -51.21)
CIE-LCHlch(26.28, 72.02, 314.68°)
OKLaboklab(38.77% 0.1033 -0.146)
OKLCHoklch(38.77% 0.179 305.3)
XYZxyz(9.6014, 4.8412, 26.0146)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C178E #498E17
analogous
#21178E #5C178E #8E1784
triadic
#5C178E #8E5C17 #178E5C
tetradic
#5C178E #8E2117 #498E17 #17848E
square
#5C178E #8E2117 #498E17 #17848E
split-complementary
#5C178E #848E17 #178E21
monochromatic
#180625 #3A0E59 #5C178E #7E20C3 #9D3FE0

Accessibility & contrast

On white

10.67
#5C178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5C178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C178E
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C178E#FFFFFF#000000##FFFFFF
##5C178E1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#523854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c178e;
/* rgb */ color: rgb(92, 23, 142);
/* oklch */ color: oklch(38.8% 0.179 305.3);
Tailwind
colors: {
  custom: {
    50: '#905eb0',
    500: '#5c178e',
    950: '#000000',
  },
}
SCSS
$custom: #5c178e;
$custom-light: #905eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c178e",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 274.79,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38769,
    "c": 0.17883,
    "h": 305.3
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#5C178E
secondary
#76C040
accent
#EF3985
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C178E

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

Preview Lab → · Contrast checker → · Palette generator →

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