#5C178A#5C178A

#5C178A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.175 H 306.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#5C178A
RGBrgb(92, 23, 138)
HSLhsl(276, 71%, 32%)
HSVhsv(276, 83%, 54%)
CMYKcmyk(33.3%, 83.3%, 0%, 45.9%)
CIE-LABlab(25.93, 49.72, -49.29)
CIE-LCHlch(25.93, 70.01, 315.25°)
OKLaboklab(38.42% 0.1045 -0.1403)
OKLCHoklch(38.42% 0.175 306.7)
XYZxyz(9.3065, 4.7232, 24.4612)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C178A #458A17
analogous
#23178A #5C178A #8A177F
triadic
#5C178A #8A5C17 #178A5C
tetradic
#5C178A #8A2317 #458A17 #177F8A
square
#5C178A #8A2317 #458A17 #177F8A
split-complementary
#5C178A #7F8A17 #178A23
monochromatic
#160621 #390E56 #5C178A #7F20BE #9E3DDF

Accessibility & contrast

On white

10.80
#5C178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5C178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C178A
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C178A#FFFFFF#000000##FFFFFF
##5C178A1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#543652
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c178a;
/* rgb */ color: rgb(92, 23, 138);
/* oklch */ color: oklch(38.4% 0.175 306.7);
Tailwind
colors: {
  custom: {
    50: '#8f5ead',
    500: '#5c178a',
    950: '#000000',
  },
}
SCSS
$custom: #5c178a;
$custom-light: #8f5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5c178a",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 276,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38421,
    "c": 0.17495,
    "h": 306.7
  },
  "luminance": 0.04723
}

Semantic roles & 50–950 ramp

primary
#5C178A
secondary
#72BE3F
accent
#EE3A82
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C178A

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

Preview Lab → · Contrast checker → · Palette generator →

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