#5A1176#5A1176

#5A1176 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.0% C 0.161 H 313.9°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#5A1176
RGBrgb(90, 17, 118)
HSLhsl(283, 75%, 26%)
HSVhsv(283, 86%, 46%)
CMYKcmyk(23.7%, 85.6%, 0%, 53.7%)
CIE-LABlab(23.28, 46.91, -40.98)
CIE-LCHlch(23.28, 62.29, 318.86°)
OKLaboklab(35.99% 0.1115 -0.1159)
OKLCHoklch(35.99% 0.161 313.9)
XYZxyz(7.6863, 3.8828, 17.4806)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1176 #2D7611
analogous
#271176 #5A1176 #761160
triadic
#5A1176 #765A11 #11765A
tetradic
#5A1176 #762711 #2D7611 #116076
square
#5A1176 #762711 #2D7611 #116076
split-complementary
#5A1176 #607611 #117627
monochromatic
#14041B #310941 #5A1176 #8319AB #AB22DF

Accessibility & contrast

On white

11.82
#5A1176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1176
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1176#FFFFFF#000000##FFFFFF
##5A11761.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#043974
Tritanopia (blue-blind)
#572B45
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1176;
/* rgb */ color: rgb(90, 17, 118);
/* oklch */ color: oklch(36.0% 0.161 313.9);
Tailwind
colors: {
  custom: {
    50: '#8d5a9e',
    500: '#5a1176',
    950: '#000000',
  },
}
SCSS
$custom: #5a1176;
$custom-light: #8d5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1176",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 283.366,
    "s": 74.815,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35989,
    "c": 0.16088,
    "h": 313.9
  },
  "luminance": 0.03883
}

Semantic roles & 50–950 ramp

primary
#5A1176
secondary
#57AD36
accent
#F1366A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1176

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

Preview Lab → · Contrast checker → · Palette generator →

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