#5C178B#5C178B

#5C178B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.176 H 306.3°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5C178B
RGBrgb(92, 23, 139)
HSLhsl(276, 72%, 32%)
HSVhsv(276, 83%, 55%)
CMYKcmyk(33.8%, 83.5%, 0%, 45.5%)
CIE-LABlab(26.02, 49.95, -49.77)
CIE-LCHlch(26.02, 70.51, 315.10°)
OKLaboklab(38.51% 0.1042 -0.1417)
OKLCHoklch(38.51% 0.176 306.3)
XYZxyz(9.3792, 4.7523, 24.8443)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C178B #468B17
analogous
#22178B #5C178B #8B1780
triadic
#5C178B #8B5C17 #178B5C
tetradic
#5C178B #8B2217 #468B17 #17808B
square
#5C178B #8B2217 #468B17 #17808B
split-complementary
#5C178B #808B17 #178B22
monochromatic
#160622 #390E56 #5C178B #7F20C0 #9E3DDF

Accessibility & contrast

On white

10.77
#5C178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5C178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C178B
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C178B#FFFFFF#000000##FFFFFF
##5C178B1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#533752
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c178b;
/* rgb */ color: rgb(92, 23, 139);
/* oklch */ color: oklch(38.5% 0.176 306.3);
Tailwind
colors: {
  custom: {
    50: '#8f5eae',
    500: '#5c178b',
    950: '#000000',
  },
}
SCSS
$custom: #5c178b;
$custom-light: #8f5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c178b",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 275.69,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38508,
    "c": 0.17592,
    "h": 306.3
  },
  "luminance": 0.04752
}

Semantic roles & 50–950 ramp

primary
#5C178B
secondary
#73BF3F
accent
#EE3983
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C178B

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

Preview Lab → · Contrast checker → · Palette generator →

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