#5C178F#5C178F

#5C178F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.180 H 304.9°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5C178F
RGBrgb(92, 23, 143)
HSLhsl(275, 72%, 33%)
HSVhsv(275, 84%, 56%)
CMYKcmyk(35.7%, 83.9%, 0%, 43.9%)
CIE-LABlab(26.36, 50.86, -51.69)
CIE-LCHlch(26.36, 72.52, 314.54°)
OKLaboklab(38.86% 0.103 -0.1474)
OKLCHoklch(38.86% 0.18 304.9)
XYZxyz(9.6768, 4.8713, 26.4117)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C178F #4A8F17
analogous
#20178F #5C178F #8F1786
triadic
#5C178F #8F5C17 #178F5C
tetradic
#5C178F #8F2017 #4A8F17 #17868F
square
#5C178F #8F2017 #4A8F17 #17868F
split-complementary
#5C178F #868F17 #178F20
monochromatic
#180626 #3A0F5A #5C178F #7E1FC4 #9C40E0

Accessibility & contrast

On white

10.64
#5C178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C178F
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C178F#FFFFFF#000000##FFFFFF
##5C178F1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#523855
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c178f;
/* rgb */ color: rgb(92, 23, 143);
/* oklch */ color: oklch(38.9% 0.180 304.9);
Tailwind
colors: {
  custom: {
    50: '#905eb1',
    500: '#5c178f',
    950: '#000000',
  },
}
SCSS
$custom: #5c178f;
$custom-light: #905eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c178f",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 274.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38857,
    "c": 0.1798,
    "h": 304.9
  },
  "luminance": 0.04871
}

Semantic roles & 50–950 ramp

primary
#5C178F
secondary
#77C141
accent
#EF3986
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C178F

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

Preview Lab → · Contrast checker → · Palette generator →

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