#5A176A#5A176A

#5A176A is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.144 H 319.0°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#5A176A
RGBrgb(90, 23, 106)
HSLhsl(288, 64%, 25%)
HSVhsv(288, 78%, 42%)
CMYKcmyk(15.1%, 78.3%, 0%, 58.4%)
CIE-LABlab(23.09, 42.31, -33.54)
CIE-LCHlch(23.09, 53.99, 321.60°)
OKLaboklab(35.57% 0.1084 -0.0941)
OKLCHoklch(35.57% 0.144 319)
XYZxyz(7.1240, 3.8274, 13.9964)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A176A #276A17
analogous
#31176A #5A176A #6A1750
triadic
#5A176A #6A5A17 #176A5A
tetradic
#5A176A #6A3117 #276A17 #17506A
square
#5A176A #6A3117 #276A17 #17506A
split-complementary
#5A176A #506A17 #176A31
monochromatic
#150519 #2F0C38 #5A176A #85229C #AF2DCF

Accessibility & contrast

On white

11.90
#5A176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A176A
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A176A#FFFFFF#000000##FFFFFF
##5A176A1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#1D3968
Tritanopia (blue-blind)
#5A283F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a176a;
/* rgb */ color: rgb(90, 23, 106);
/* oklch */ color: oklch(35.6% 0.144 319.0);
Tailwind
colors: {
  custom: {
    50: '#8c5c95',
    500: '#5a176a',
    950: '#000000',
  },
}
SCSS
$custom: #5a176a;
$custom-light: #8c5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5a176a",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 288.434,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3557,
    "c": 0.14356,
    "h": 319
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#5A176A
secondary
#50A03D
accent
#E74061
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A176A

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

Preview Lab → · Contrast checker → · Palette generator →

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