#5A1981#5A1981

#5A1981 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.164 H 308.7°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#5A1981
RGBrgb(90, 25, 129)
HSLhsl(278, 68%, 30%)
HSVhsv(278, 81%, 51%)
CMYKcmyk(30.2%, 80.6%, 0%, 49.4%)
CIE-LABlab(25.12, 46.58, -44.98)
CIE-LCHlch(25.12, 64.76, 316.00°)
OKLaboklab(37.56% 0.1023 -0.1278)
OKLCHoklch(37.56% 0.164 308.7)
XYZxyz(8.5257, 4.4540, 21.1752)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1981 #408119
analogous
#261981 #5A1981 #811974
triadic
#5A1981 #815A19 #19815A
tetradic
#5A1981 #812619 #408119 #197481
square
#5A1981 #812619 #408119 #197481
split-complementary
#5A1981 #748119 #198126
monochromatic
#12051A #360F4E #5A1981 #7E23B4 #9E3BD9

Accessibility & contrast

On white

11.11
#5A1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5A1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1981
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1981#FFFFFF#000000##FFFFFF
##5A19811.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#54334D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1981;
/* rgb */ color: rgb(90, 25, 129);
/* oklch */ color: oklch(37.6% 0.164 308.7);
Tailwind
colors: {
  custom: {
    50: '#8d5ea6',
    500: '#5a1981',
    950: '#000000',
  },
}
SCSS
$custom: #5a1981;
$custom-light: #8d5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1981",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 277.5,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37556,
    "c": 0.16368,
    "h": 308.7
  },
  "luminance": 0.04454
}

Semantic roles & 50–950 ramp

primary
#5A1981
secondary
#6CB541
accent
#EA3D7E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A1981

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

Preview Lab → · Contrast checker → · Palette generator →

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