#5A1569#5A1569

#5A1569 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.145 H 319.7°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#5A1569
RGBrgb(90, 21, 105)
HSLhsl(289, 67%, 25%)
HSVhsv(289, 80%, 41%)
CMYKcmyk(14.3%, 80%, 0%, 58.8%)
CIE-LABlab(22.76, 42.86, -33.42)
CIE-LCHlch(22.76, 54.35, 322.05°)
OKLaboklab(35.31% 0.1105 -0.0938)
OKLCHoklch(35.31% 0.145 319.7)
XYZxyz(7.0341, 3.7303, 13.7114)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1569 #246915
analogous
#301569 #5A1569 #69154E
triadic
#5A1569 #695A15 #15695A
tetradic
#5A1569 #693015 #246915 #154E69
square
#5A1569 #693015 #246915 #154E69
split-complementary
#5A1569 #4E6915 #156930
monochromatic
#16051A #2E0B36 #5A1569 #861F9C #B129CF

Accessibility & contrast

On white

12.03
#5A1569 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1569
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1569#FFFFFF#000000##FFFFFF
##5A15691.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326B
Deuteranopia (green-blind)
#1C3967
Tritanopia (blue-blind)
#5A263E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1569;
/* rgb */ color: rgb(90, 21, 105);
/* oklch */ color: oklch(35.3% 0.145 319.7);
Tailwind
colors: {
  custom: {
    50: '#8c5b94',
    500: '#5a1569',
    950: '#000000',
  },
}
SCSS
$custom: #5a1569;
$custom-light: #8c5b94;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1569",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 105
  },
  "hsl": {
    "h": 289.286,
    "s": 66.667,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35311,
    "c": 0.14492,
    "h": 319.7
  },
  "luminance": 0.0373
}

Semantic roles & 50–950 ramp

primary
#5A1569
secondary
#4CA03A
accent
#EA3E5D
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1569

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

Preview Lab → · Contrast checker → · Palette generator →

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