#5A1464#5A1464

#5A1464 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.141 H 322.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#5A1464
RGBrgb(90, 20, 100)
HSLhsl(293, 67%, 24%)
HSVhsv(293, 80%, 39%)
CMYKcmyk(10%, 80%, 0%, 60.8%)
CIE-LABlab(22.28, 42.22, -30.92)
CIE-LCHlch(22.28, 52.33, 323.78°)
OKLaboklab(34.86% 0.112 -0.0865)
OKLCHoklch(34.86% 0.141 322.3)
XYZxyz(6.7666, 3.5945, 12.3915)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1464 #1E6414
analogous
#321464 #5A1464 #641446
triadic
#5A1464 #645A14 #14645A
tetradic
#5A1464 #643214 #1E6414 #144664
square
#5A1464 #643214 #1E6414 #144664
split-complementary
#5A1464 #466414 #146432
monochromatic
#17051A #2C0A31 #5A1464 #881E97 #B628CA

Accessibility & contrast

On white

12.22
#5A1464 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5A1464 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1464
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1464#FFFFFF#000000##FFFFFF
##5A14641.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003066
Deuteranopia (green-blind)
#203862
Tritanopia (blue-blind)
#5B243B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1464;
/* rgb */ color: rgb(90, 20, 100);
/* oklch */ color: oklch(34.9% 0.141 322.3);
Tailwind
colors: {
  custom: {
    50: '#8c5a90',
    500: '#5a1464',
    950: '#000000',
  },
}
SCSS
$custom: #5a1464;
$custom-light: #8c5a90;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1464",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 100
  },
  "hsl": {
    "h": 292.5,
    "s": 66.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34862,
    "c": 0.14147,
    "h": 322.3
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#5A1464
secondary
#459B38
accent
#EA3E54
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1464

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

Preview Lab → · Contrast checker → · Palette generator →

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