#5A176C#5A176C

#5A176C is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.7% C 0.145 H 318.0°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#5A176C
RGBrgb(90, 23, 108)
HSLhsl(287, 65%, 26%)
HSVhsv(287, 79%, 42%)
CMYKcmyk(16.7%, 78.7%, 0%, 57.6%)
CIE-LABlab(23.24, 42.73, -34.60)
CIE-LCHlch(23.24, 54.98, 321.00°)
OKLaboklab(35.72% 0.1081 -0.0973)
OKLCHoklch(35.72% 0.145 318)
XYZxyz(7.2292, 3.8695, 14.5505)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A176C #296C17
analogous
#2F176C #5A176C #6C1753
triadic
#5A176C #6C5A17 #176C5A
tetradic
#5A176C #6C2F17 #296C17 #17536C
square
#5A176C #6C2F17 #296C17 #17536C
split-complementary
#5A176C #536C17 #176C2F
monochromatic
#150519 #300C3A #5A176C #84229E #AE2CD1

Accessibility & contrast

On white

11.84
#5A176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A176C
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A176C#FFFFFF#000000##FFFFFF
##5A176C1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#1B396A
Tritanopia (blue-blind)
#592940
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a176c;
/* rgb */ color: rgb(90, 23, 108);
/* oklch */ color: oklch(35.7% 0.145 318.0);
Tailwind
colors: {
  custom: {
    50: '#8c5c97',
    500: '#5a176c',
    950: '#000000',
  },
}
SCSS
$custom: #5a176c;
$custom-light: #8c5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5a176c",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 287.294,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35717,
    "c": 0.14546,
    "h": 318
  },
  "luminance": 0.03869
}

Semantic roles & 50–950 ramp

primary
#5A176C
secondary
#52A23D
accent
#E84063
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A176C

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

Preview Lab → · Contrast checker → · Palette generator →

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