#5A176D#5A176D

#5A176D is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.146 H 317.5°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#5A176D
RGBrgb(90, 23, 109)
HSLhsl(287, 65%, 26%)
HSVhsv(287, 79%, 43%)
CMYKcmyk(17.4%, 78.9%, 0%, 57.3%)
CIE-LABlab(23.31, 42.94, -35.14)
CIE-LCHlch(23.31, 55.48, 320.71°)
OKLaboklab(35.79% 0.108 -0.0988)
OKLCHoklch(35.79% 0.146 317.5)
XYZxyz(7.2828, 3.8909, 14.8324)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A176D #2A6D17
analogous
#2F176D #5A176D #6D1755
triadic
#5A176D #6D5A17 #176D5A
tetradic
#5A176D #6D2F17 #2A6D17 #17556D
square
#5A176D #6D2F17 #2A6D17 #17556D
split-complementary
#5A176D #556D17 #176D2F
monochromatic
#150519 #300C3A #5A176D #8422A0 #AD2CD2

Accessibility & contrast

On white

11.81
#5A176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5A176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A176D
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A176D#FFFFFF#000000##FFFFFF
##5A176D1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#1A3A6B
Tritanopia (blue-blind)
#592941
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a176d;
/* rgb */ color: rgb(90, 23, 109);
/* oklch */ color: oklch(35.8% 0.146 317.5);
Tailwind
colors: {
  custom: {
    50: '#8c5c97',
    500: '#5a176d',
    950: '#000000',
  },
}
SCSS
$custom: #5a176d;
$custom-light: #8c5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5a176d",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 286.744,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35791,
    "c": 0.14641,
    "h": 317.5
  },
  "luminance": 0.03891
}

Semantic roles & 50–950 ramp

primary
#5A176D
secondary
#53A33D
accent
#E84065
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A176D

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

Preview Lab → · Contrast checker → · Palette generator →

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