#5A1059#5A1059

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

Color values

HEX#5A1059
RGBrgb(90, 16, 89)
HSLhsl(301, 70%, 21%)
HSVhsv(301, 82%, 35%)
CMYKcmyk(0%, 82.2%, 1.1%, 64.7%)
CIE-LABlab(21.08, 41.50, -25.56)
CIE-LCHlch(21.08, 48.74, 328.38°)
OKLaboklab(33.77% 0.1164 -0.0708)
OKLCHoklch(33.77% 0.136 328.7)
XYZxyz(6.2049, 3.2660, 9.7528)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1059 #105A11
analogous
#36105A #5A1059 #5A1034
triadic
#5A1059 #595A10 #10595A
tetradic
#5A1059 #5A3610 #105A11 #10345A
square
#5A1059 #5A3610 #105A11 #10345A
split-complementary
#5A1059 #345A10 #105A36
monochromatic
#1A051A #260726 #5A1059 #8E198C #C222C0

Accessibility & contrast

On white

12.70
#5A1059 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A1059 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1059
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1059#FFFFFF#000000##FFFFFF
##5A10591.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1059;
/* rgb */ color: rgb(90, 16, 89);
/* oklch */ color: oklch(33.8% 0.136 328.7);
Tailwind
colors: {
  custom: {
    50: '#8c5888',
    500: '#5a1059',
    950: '#000000',
  },
}
SCSS
$custom: #5a1059;
$custom-light: #8c5888;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1059",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 89
  },
  "hsl": {
    "h": 300.811,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33772,
    "c": 0.13622,
    "h": 328.7
  },
  "luminance": 0.03266
}

Semantic roles & 50–950 ramp

primary
#5A1059
secondary
#339334
accent
#ED3E3B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1059

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

Preview Lab → · Contrast checker → · Palette generator →

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