#5A1480#5A1480

#5A1480 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.168 H 309.6°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#5A1480
RGBrgb(90, 20, 128)
HSLhsl(279, 73%, 29%)
HSVhsv(279, 84%, 50%)
CMYKcmyk(29.7%, 84.4%, 0%, 49.8%)
CIE-LABlab(24.43, 48.13, -45.47)
CIE-LCHlch(24.43, 66.21, 316.62°)
OKLaboklab(37.05% 0.1067 -0.1292)
OKLCHoklch(37.05% 0.168 309.6)
XYZxyz(8.3621, 4.2327, 20.7944)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1480 #3A8014
analogous
#241480 #5A1480 #801470
triadic
#5A1480 #805A14 #14805A
tetradic
#5A1480 #802414 #3A8014 #147080
square
#5A1480 #802414 #3A8014 #147080
split-complementary
#5A1480 #708014 #148024
monochromatic
#13041A #350C4B #5A1480 #7F1CB5 #A130DF

Accessibility & contrast

On white

11.37
#5A1480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5A1480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1480
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1480#FFFFFF#000000##FFFFFF
##5A14801.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#54314B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a1480;
/* rgb */ color: rgb(90, 20, 128);
/* oklch */ color: oklch(37.0% 0.168 309.6);
Tailwind
colors: {
  custom: {
    50: '#8d5ca6',
    500: '#5a1480',
    950: '#000000',
  },
}
SCSS
$custom: #5a1480;
$custom-light: #8d5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1480",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 278.889,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37045,
    "c": 0.16754,
    "h": 309.6
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#5A1480
secondary
#66B53B
accent
#F03879
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A1480

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

Preview Lab → · Contrast checker → · Palette generator →

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