#5A176F#5A176F

#5A176F is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.148 H 316.6°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#5A176F
RGBrgb(90, 23, 111)
HSLhsl(286, 66%, 26%)
HSVhsv(286, 79%, 44%)
CMYKcmyk(18.9%, 79.3%, 0%, 56.5%)
CIE-LABlab(23.45, 43.36, -36.19)
CIE-LCHlch(23.45, 56.48, 320.15°)
OKLaboklab(35.94% 0.1077 -0.1019)
OKLCHoklch(35.94% 0.148 316.6)
XYZxyz(7.3917, 3.9345, 15.4059)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A176F #2C6F17
analogous
#2E176F #5A176F #6F1758
triadic
#5A176F #6F5A17 #176F5A
tetradic
#5A176F #6F2E17 #2C6F17 #17586F
square
#5A176F #6F2E17 #2C6F17 #17586F
split-complementary
#5A176F #586F17 #176F2E
monochromatic
#150519 #310C3C #5A176F #8322A2 #AC2DD3

Accessibility & contrast

On white

11.75
#5A176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5A176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A176F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A176F#FFFFFF#000000##FFFFFF
##5A176F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#173A6D
Tritanopia (blue-blind)
#592A42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a176f;
/* rgb */ color: rgb(90, 23, 111);
/* oklch */ color: oklch(35.9% 0.148 316.6);
Tailwind
colors: {
  custom: {
    50: '#8c5c99',
    500: '#5a176f',
    950: '#000000',
  },
}
SCSS
$custom: #5a176f;
$custom-light: #8c5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#5a176f",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 285.682,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35941,
    "c": 0.14831,
    "h": 316.6
  },
  "luminance": 0.03934
}

Semantic roles & 50–950 ramp

primary
#5A176F
secondary
#56A53D
accent
#E93F68
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A176F

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

Preview Lab → · Contrast checker → · Palette generator →

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