#5A1671#5A1671

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

Color values

HEX#5A1671
RGBrgb(90, 22, 113)
HSLhsl(285, 67%, 26%)
HSVhsv(285, 81%, 44%)
CMYKcmyk(20.4%, 80.5%, 0%, 55.7%)
CIE-LABlab(23.47, 44.16, -37.45)
CIE-LCHlch(23.47, 57.91, 319.70°)
OKLaboklab(36% 0.1084 -0.1056)
OKLCHoklch(36% 0.151 315.7)
XYZxyz(7.4835, 3.9400, 15.9859)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1671 #2D7116
analogous
#2D1671 #5A1671 #71165B
triadic
#5A1671 #715A16 #16715A
tetradic
#5A1671 #712D16 #2D7116 #165B71
square
#5A1671 #712D16 #2D7116 #165B71
split-complementary
#5A1671 #5B7116 #16712D
monochromatic
#14051A #310C3E #5A1671 #8320A4 #AB2CD6

Accessibility & contrast

On white

11.74
#5A1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5A1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1671
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1671#FFFFFF#000000##FFFFFF
##5A16711.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#143A6F
Tritanopia (blue-blind)
#582B43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1671;
/* rgb */ color: rgb(90, 22, 113);
/* oklch */ color: oklch(36.0% 0.151 315.7);
Tailwind
colors: {
  custom: {
    50: '#8c5c9a',
    500: '#5a1671',
    950: '#000000',
  },
}
SCSS
$custom: #5a1671;
$custom-light: #8c5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1671",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 284.835,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36002,
    "c": 0.15133,
    "h": 315.7
  },
  "luminance": 0.0394
}

Semantic roles & 50–950 ramp

primary
#5A1671
secondary
#57A73C
accent
#EA3E69
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1671

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

Preview Lab → · Contrast checker → · Palette generator →

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