#5A1071#5A1071

#5A1071 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.5% C 0.157 H 316.2°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#5A1071
RGBrgb(90, 16, 113)
HSLhsl(286, 75%, 25%)
HSVhsv(286, 86%, 44%)
CMYKcmyk(20.4%, 85.8%, 0%, 55.7%)
CIE-LABlab(22.78, 46.17, -38.57)
CIE-LCHlch(22.78, 60.16, 320.12°)
OKLaboklab(35.52% 0.1134 -0.1089)
OKLCHoklch(35.52% 0.157 316.2)
XYZxyz(7.3819, 3.7368, 15.9520)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1071 #277110
analogous
#291071 #5A1071 #711057
triadic
#5A1071 #715A10 #10715A
tetradic
#5A1071 #712910 #277110 #105771
square
#5A1071 #712910 #277110 #105771
split-complementary
#5A1071 #577110 #107129
monochromatic
#15041B #2F083B #5A1071 #8518A7 #AF1FDC

Accessibility & contrast

On white

12.02
#5A1071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5A1071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1071
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1071#FFFFFF#000000##FFFFFF
##5A10711.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#0E386F
Tritanopia (blue-blind)
#582842
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1071;
/* rgb */ color: rgb(90, 16, 113);
/* oklch */ color: oklch(35.5% 0.157 316.2);
Tailwind
colors: {
  custom: {
    50: '#8c5a9a',
    500: '#5a1071',
    950: '#000000',
  },
}
SCSS
$custom: #5a1071;
$custom-light: #8c5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1071",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 285.773,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35516,
    "c": 0.15722,
    "h": 316.2
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#5A1071
secondary
#50A934
accent
#F23663
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1071

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

Preview Lab → · Contrast checker → · Palette generator →

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