#5A1161#5A1161

#5A1161 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.4% C 0.142 H 324.1°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#5A1161
RGBrgb(90, 17, 97)
HSLhsl(295, 70%, 22%)
HSVhsv(295, 82%, 38%)
CMYKcmyk(7.2%, 82.5%, 0%, 62%)
CIE-LABlab(21.72, 42.66, -29.85)
CIE-LCHlch(21.72, 52.07, 325.03°)
OKLaboklab(34.4% 0.115 -0.0833)
OKLCHoklch(34.4% 0.142 324.1)
XYZxyz(6.5744, 3.4380, 11.6243)
Luminance0.0344 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1161 #186111
analogous
#321161 #5A1161 #611140
triadic
#5A1161 #615A11 #11615A
tetradic
#5A1161 #613211 #186111 #114061
square
#5A1161 #613211 #186111 #114061
split-complementary
#5A1161 #406111 #116132
monochromatic
#18051A #2A082D #5A1161 #8A1A95 #BB23C9

Accessibility & contrast

On white

12.44
#5A1161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5A1161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1161
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1161#FFFFFF#000000##FFFFFF
##5A11611.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F63
Deuteranopia (green-blind)
#21375F
Tritanopia (blue-blind)
#5C2139
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a1161;
/* rgb */ color: rgb(90, 17, 97);
/* oklch */ color: oklch(34.4% 0.142 324.1);
Tailwind
colors: {
  custom: {
    50: '#8c598e',
    500: '#5a1161',
    950: '#000000',
  },
}
SCSS
$custom: #5a1161;
$custom-light: #8c598e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1161",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 294.75,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34396,
    "c": 0.14203,
    "h": 324.1
  },
  "luminance": 0.03438
}

Semantic roles & 50–950 ramp

primary
#5A1161
secondary
#3D9934
accent
#ED3B4A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1161

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

Preview Lab → · Contrast checker → · Palette generator →

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