#541A89#541A89

#541A89 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.169 H 302.3°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#541A89
RGBrgb(84, 26, 137)
HSLhsl(271, 68%, 32%)
HSVhsv(271, 81%, 54%)
CMYKcmyk(38.7%, 81%, 0%, 46.3%)
CIE-LABlab(25.04, 47.03, -50.16)
CIE-LCHlch(25.04, 68.76, 313.16°)
OKLaboklab(37.53% 0.0904 -0.1432)
OKLCHoklch(37.53% 0.169 302.3)
XYZxyz(8.5398, 4.4297, 24.0672)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A89 #4F891A
analogous
#1C1A89 #541A89 #891A87
triadic
#541A89 #89541A #1A8954
tetradic
#541A89 #891C1A #4F891A #1A8789
square
#541A89 #891C1A #4F891A #1A8789
split-complementary
#541A89 #87891A #1A891C
monochromatic
#150622 #341056 #541A89 #7424BC #9242DB

Accessibility & contrast

On white

11.13
#541A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#541A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A89
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A89#FFFFFF#000000##FFFFFF
##541A891.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003B87
Tritanopia (blue-blind)
#493852
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541a89;
/* rgb */ color: rgb(84, 26, 137);
/* oklch */ color: oklch(37.5% 0.169 302.3);
Tailwind
colors: {
  custom: {
    50: '#8a5eac',
    500: '#541a89',
    950: '#000000',
  },
}
SCSS
$custom: #541a89;
$custom-light: #8a5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#541a89",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 271.351,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37528,
    "c": 0.16934,
    "h": 302.3
  },
  "luminance": 0.0443
}

Semantic roles & 50–950 ramp

primary
#541A89
secondary
#7DBC43
accent
#EB3D90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541A89

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

Preview Lab → · Contrast checker → · Palette generator →

#541A89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva