#5A1466#5A1466

#5A1466 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.143 H 321.3°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#5A1466
RGBrgb(90, 20, 102)
HSLhsl(291, 67%, 24%)
HSVhsv(291, 80%, 40%)
CMYKcmyk(11.8%, 80.4%, 0%, 60%)
CIE-LABlab(22.42, 42.61, -32.00)
CIE-LCHlch(22.42, 53.29, 323.09°)
OKLaboklab(35% 0.1118 -0.0896)
OKLCHoklch(35% 0.143 321.3)
XYZxyz(6.8646, 3.6337, 12.9076)
Luminance0.0363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1466 #206614
analogous
#311466 #5A1466 #661449
triadic
#5A1466 #665A14 #14665A
tetradic
#5A1466 #663114 #206614 #144966
square
#5A1466 #663114 #206614 #144966
split-complementary
#5A1466 #496614 #146631
monochromatic
#17051A #2D0A33 #5A1466 #871E99 #B428CC

Accessibility & contrast

On white

12.16
#5A1466 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5A1466 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1466
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1466#FFFFFF#000000##FFFFFF
##5A14661.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003168
Deuteranopia (green-blind)
#1E3864
Tritanopia (blue-blind)
#5B253C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1466;
/* rgb */ color: rgb(90, 20, 102);
/* oklch */ color: oklch(35.0% 0.143 321.3);
Tailwind
colors: {
  custom: {
    50: '#8c5b92',
    500: '#5a1466',
    950: '#000000',
  },
}
SCSS
$custom: #5a1466;
$custom-light: #8c5b92;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1466",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 102
  },
  "hsl": {
    "h": 291.22,
    "s": 67.213,
    "l": 23.922
  },
  "oklch": {
    "l": 0.35004,
    "c": 0.14328,
    "h": 321.3
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#5A1466
secondary
#479D39
accent
#EA3E57
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1466

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

Preview Lab → · Contrast checker → · Palette generator →

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