#5A1064#5A1064

#5A1064 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.146 H 322.5°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#5A1064
RGBrgb(90, 16, 100)
HSLhsl(293, 72%, 23%)
HSVhsv(293, 84%, 39%)
CMYKcmyk(10%, 84%, 0%, 60.8%)
CIE-LABlab(21.82, 43.56, -31.66)
CIE-LCHlch(21.82, 53.85, 323.99°)
OKLaboklab(34.53% 0.1156 -0.0886)
OKLCHoklch(34.53% 0.146 322.5)
XYZxyz(6.7018, 3.4647, 12.3699)
Luminance0.0346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1064 #1A6410
analogous
#301064 #5A1064 #641044
triadic
#5A1064 #645A10 #10645A
tetradic
#5A1064 #643010 #1A6410 #104464
square
#5A1064 #643010 #1A6410 #104464
split-complementary
#5A1064 #446410 #106430
monochromatic
#18041A #2B082F #5A1064 #891899 #B921CE

Accessibility & contrast

On white

12.41
#5A1064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5A1064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1064
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1064#FFFFFF#000000##FFFFFF
##5A10641.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F66
Deuteranopia (green-blind)
#1E3762
Tritanopia (blue-blind)
#5B223A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a1064;
/* rgb */ color: rgb(90, 16, 100);
/* oklch */ color: oklch(34.5% 0.146 322.5);
Tailwind
colors: {
  custom: {
    50: '#8c5991',
    500: '#5a1064',
    950: '#000000',
  },
}
SCSS
$custom: #5a1064;
$custom-light: #8c5991;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1064",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 100
  },
  "hsl": {
    "h": 292.857,
    "s": 72.414,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34531,
    "c": 0.14566,
    "h": 322.5
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#5A1064
secondary
#409D33
accent
#EF394E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040D
muted
#7D797D

Preview Lab

Preview with #5A1064

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

Preview Lab → · Contrast checker → · Palette generator →

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