#5A1472#5A1472

#5A1472 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.154 H 315.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#5A1472
RGBrgb(90, 20, 114)
HSLhsl(285, 70%, 26%)
HSVhsv(285, 82%, 45%)
CMYKcmyk(21.1%, 82.5%, 0%, 55.3%)
CIE-LABlab(23.30, 45.09, -38.37)
CIE-LCHlch(23.30, 59.21, 319.60°)
OKLaboklab(35.91% 0.11 -0.1083)
OKLCHoklch(35.91% 0.154 315.4)
XYZxyz(7.5034, 3.8892, 16.2718)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1472 #2C7214
analogous
#2B1472 #5A1472 #72145B
triadic
#5A1472 #725A14 #14725A
tetradic
#5A1472 #722B14 #2C7214 #145B72
square
#5A1472 #722B14 #2C7214 #145B72
split-complementary
#5A1472 #5B7214 #14722B
monochromatic
#15051A #310B3E #5A1472 #831DA6 #AC27D9

Accessibility & contrast

On white

11.81
#5A1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5A1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1472
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1472#FFFFFF#000000##FFFFFF
##5A14721.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#103970
Tritanopia (blue-blind)
#582A43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1472;
/* rgb */ color: rgb(90, 20, 114);
/* oklch */ color: oklch(35.9% 0.154 315.4);
Tailwind
colors: {
  custom: {
    50: '#8c5b9b',
    500: '#5a1472',
    950: '#000000',
  },
}
SCSS
$custom: #5a1472;
$custom-light: #8c5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1472",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 284.681,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35906,
    "c": 0.15436,
    "h": 315.4
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#5A1472
secondary
#56A839
accent
#ED3B68
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1472

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

Preview Lab → · Contrast checker → · Palette generator →

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