#5A1B79#5A1B79

#5A1B79 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.153 H 311.7°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#5A1B79
RGBrgb(90, 27, 121)
HSLhsl(280, 64%, 29%)
HSVhsv(280, 78%, 47%)
CMYKcmyk(25.6%, 77.7%, 0%, 52.5%)
CIE-LABlab(24.76, 43.97, -40.49)
CIE-LCHlch(24.76, 59.78, 317.36°)
OKLaboklab(37.1% 0.1021 -0.1146)
OKLCHoklch(37.1% 0.154 311.7)
XYZxyz(8.0589, 4.3382, 18.4983)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1B79 #3A791B
analogous
#2B1B79 #5A1B79 #791B69
triadic
#5A1B79 #795A1B #1B795A
tetradic
#5A1B79 #792B1B #3A791B #1B6979
square
#5A1B79 #792B1B #3A791B #1B6979
split-complementary
#5A1B79 #69791B #1B792B
monochromatic
#130619 #351047 #5A1B79 #7F26AB #A13BD3

Accessibility & contrast

On white

11.24
#5A1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5A1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1B79
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1B79#FFFFFF#000000##FFFFFF
##5A1B791.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#0B3C77
Tritanopia (blue-blind)
#563149
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1b79;
/* rgb */ color: rgb(90, 27, 121);
/* oklch */ color: oklch(37.1% 0.153 311.7);
Tailwind
colors: {
  custom: {
    50: '#8c5fa0',
    500: '#5a1b79',
    950: '#000000',
  },
}
SCSS
$custom: #5a1b79;
$custom-light: #8c5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1b79",
  "rgb": {
    "r": 90,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 280.213,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37103,
    "c": 0.1535,
    "h": 311.7
  },
  "luminance": 0.04338
}

Semantic roles & 50–950 ramp

primary
#5A1B79
secondary
#66AD43
accent
#E74178
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #5A1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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