#5A1561#5A1561

#5A1561 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.138 H 323.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5A1561
RGBrgb(90, 21, 97)
HSLhsl(294, 64%, 23%)
HSVhsv(294, 78%, 38%)
CMYKcmyk(7.2%, 78.4%, 0%, 62%)
CIE-LABlab(22.21, 41.26, -29.06)
CIE-LCHlch(22.21, 50.47, 324.84°)
OKLaboklab(34.74% 0.1112 -0.081)
OKLCHoklch(34.74% 0.138 323.9)
XYZxyz(6.6421, 3.5735, 11.6468)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1561 #1C6115
analogous
#341561 #5A1561 #611542
triadic
#5A1561 #615A15 #15615A
tetradic
#5A1561 #613415 #1C6115 #154261
square
#5A1561 #613415 #1C6115 #154261
split-complementary
#5A1561 #426115 #156134
monochromatic
#170519 #2B0A2F #5A1561 #892093 #B72BC6

Accessibility & contrast

On white

12.25
#5A1561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A1561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1561
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1561#FFFFFF#000000##FFFFFF
##5A15611.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003063
Deuteranopia (green-blind)
#23385F
Tritanopia (blue-blind)
#5C233A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1561;
/* rgb */ color: rgb(90, 21, 97);
/* oklch */ color: oklch(34.7% 0.138 323.9);
Tailwind
colors: {
  custom: {
    50: '#8c5b8e',
    500: '#5a1561',
    950: '#000000',
  },
}
SCSS
$custom: #5a1561;
$custom-light: #8c5b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1561",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 294.474,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34744,
    "c": 0.13759,
    "h": 323.9
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#5A1561
secondary
#42983A
accent
#E74050
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1561

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

Preview Lab → · Contrast checker → · Palette generator →

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