#5A1581#5A1581

#5A1581 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.168 H 309.1°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#5A1581
RGBrgb(90, 21, 129)
HSLhsl(278, 72%, 29%)
HSVhsv(278, 84%, 51%)
CMYKcmyk(30.2%, 83.7%, 0%, 49.4%)
CIE-LABlab(24.62, 48.02, -45.78)
CIE-LCHlch(24.62, 66.35, 316.37°)
OKLaboklab(37.21% 0.1056 -0.1301)
OKLCHoklch(37.21% 0.168 309.1)
XYZxyz(8.4462, 4.2951, 21.1487)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1581 #3C8115
analogous
#241581 #5A1581 #811572
triadic
#5A1581 #815A15 #15815A
tetradic
#5A1581 #812415 #3C8115 #157281
square
#5A1581 #812415 #3C8115 #157281
split-complementary
#5A1581 #728115 #158124
monochromatic
#12041A #350C4C #5A1581 #7F1EB6 #A033DE

Accessibility & contrast

On white

11.30
#5A1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5A1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1581
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1581#FFFFFF#000000##FFFFFF
##5A15811.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#54324C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a1581;
/* rgb */ color: rgb(90, 21, 129);
/* oklch */ color: oklch(37.2% 0.168 309.1);
Tailwind
colors: {
  custom: {
    50: '#8d5da6',
    500: '#5a1581',
    950: '#000000',
  },
}
SCSS
$custom: #5a1581;
$custom-light: #8d5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1581",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 278.333,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3721,
    "c": 0.16759,
    "h": 309.1
  },
  "luminance": 0.04295
}

Semantic roles & 50–950 ramp

primary
#5A1581
secondary
#68B63C
accent
#EF397B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A1581

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

Preview Lab → · Contrast checker → · Palette generator →

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