#5A1477#5A1477

#5A1477 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.159 H 313.2°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#5A1477
RGBrgb(90, 20, 119)
HSLhsl(282, 71%, 27%)
HSVhsv(282, 83%, 47%)
CMYKcmyk(24.4%, 83.2%, 0%, 53.3%)
CIE-LABlab(23.69, 46.16, -40.95)
CIE-LCHlch(23.69, 61.70, 318.42°)
OKLaboklab(36.3% 0.1089 -0.1159)
OKLCHoklch(36.3% 0.159 313.2)
XYZxyz(7.7958, 4.0061, 17.8118)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1477 #317714
analogous
#281477 #5A1477 #771463
triadic
#5A1477 #775A14 #14775A
tetradic
#5A1477 #772814 #317714 #146377
square
#5A1477 #772814 #317714 #146377
split-complementary
#5A1477 #637714 #147728
monochromatic
#14041A #320B43 #5A1477 #821DAB #A72ADB

Accessibility & contrast

On white

11.66
#5A1477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5A1477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1477
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1477#FFFFFF#000000##FFFFFF
##5A14771.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#053A75
Tritanopia (blue-blind)
#572D46
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1477;
/* rgb */ color: rgb(90, 20, 119);
/* oklch */ color: oklch(36.3% 0.159 313.2);
Tailwind
colors: {
  custom: {
    50: '#8d5c9f',
    500: '#5a1477',
    950: '#000000',
  },
}
SCSS
$custom: #5a1477;
$custom-light: #8d5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1477",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 282.424,
    "s": 71.223,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36302,
    "c": 0.15904,
    "h": 313.2
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

primary
#5A1477
secondary
#5CAD3A
accent
#EE3A6F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1477

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

Preview Lab → · Contrast checker → · Palette generator →

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