#5A1567#5A1567

#5A1567 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.143 H 320.7°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#5A1567
RGBrgb(90, 21, 103)
HSLhsl(290, 66%, 24%)
HSVhsv(290, 80%, 40%)
CMYKcmyk(12.6%, 79.6%, 0%, 59.6%)
CIE-LABlab(22.62, 42.45, -32.34)
CIE-LCHlch(22.62, 53.37, 322.70°)
OKLaboklab(35.17% 0.1107 -0.0906)
OKLCHoklch(35.17% 0.143 320.7)
XYZxyz(6.9325, 3.6896, 13.1763)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1567 #226715
analogous
#311567 #5A1567 #67154B
triadic
#5A1567 #675A15 #15675A
tetradic
#5A1567 #673115 #226715 #154B67
square
#5A1567 #673115 #226715 #154B67
split-complementary
#5A1567 #4B6715 #156731
monochromatic
#160519 #2E0B34 #5A1567 #861F9A #B32ACD

Accessibility & contrast

On white

12.08
#5A1567 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5A1567 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1567
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1567#FFFFFF#000000##FFFFFF
##5A15671.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#1E3865
Tritanopia (blue-blind)
#5B263D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1567;
/* rgb */ color: rgb(90, 21, 103);
/* oklch */ color: oklch(35.2% 0.143 320.7);
Tailwind
colors: {
  custom: {
    50: '#8c5b93',
    500: '#5a1567',
    950: '#000000',
  },
}
SCSS
$custom: #5a1567;
$custom-light: #8c5b93;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1567",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 290.488,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35166,
    "c": 0.14307,
    "h": 320.7
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#5A1567
secondary
#4A9E3A
accent
#E93F5A
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1567

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

Preview Lab → · Contrast checker → · Palette generator →

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