#5A1159#5A1159

#5A1159 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.135 H 328.7°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#5A1159
RGBrgb(90, 17, 89)
HSLhsl(301, 68%, 21%)
HSVhsv(301, 81%, 35%)
CMYKcmyk(0%, 81.1%, 1.1%, 64.7%)
CIE-LABlab(21.19, 41.17, -25.37)
CIE-LCHlch(21.19, 48.36, 328.36°)
OKLaboklab(33.85% 0.1154 -0.0703)
OKLCHoklch(33.85% 0.135 328.7)
XYZxyz(6.2200, 3.2963, 9.7579)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1159 #115A12
analogous
#36115A #5A1159 #5A1134
triadic
#5A1159 #595A11 #11595A
tetradic
#5A1159 #5A3611 #115A12 #11345A
square
#5A1159 #5A3611 #115A12 #11345A
split-complementary
#5A1159 #345A11 #115A36
monochromatic
#1A0519 #270726 #5A1159 #8D1B8C #C124BF

Accessibility & contrast

On white

12.66
#5A1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1159
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1159#FFFFFF#000000##FFFFFF
##5A11591.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032D5B
Deuteranopia (green-blind)
#263657
Tritanopia (blue-blind)
#5D1C34
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a1159;
/* rgb */ color: rgb(90, 17, 89);
/* oklch */ color: oklch(33.9% 0.135 328.7);
Tailwind
colors: {
  custom: {
    50: '#8c5988',
    500: '#5a1159',
    950: '#000000',
  },
}
SCSS
$custom: #5a1159;
$custom-light: #8c5988;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1159",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 300.822,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33853,
    "c": 0.13515,
    "h": 328.7
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#5A1159
secondary
#349335
accent
#EB3F3D
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1159

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

Preview Lab → · Contrast checker → · Palette generator →

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