#541A71#541A71

#541A71 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.145 H 311.6°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#541A71
RGBrgb(84, 26, 113)
HSLhsl(280, 63%, 27%)
HSVhsv(280, 77%, 44%)
CMYKcmyk(25.7%, 77%, 0%, 55.7%)
CIE-LABlab(23.05, 41.30, -38.18)
CIE-LCHlch(23.05, 56.25, 317.25°)
OKLaboklab(35.51% 0.096 -0.108)
OKLCHoklch(35.51% 0.145 311.6)
XYZxyz(7.0056, 3.8160, 15.9871)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A71 #37711A
analogous
#291A71 #541A71 #711A63
triadic
#541A71 #71541A #1A7154
tetradic
#541A71 #71291A #37711A #1A6371
square
#541A71 #71291A #37711A #1A6371
split-complementary
#541A71 #63711A #1A7129
monochromatic
#120619 #2F0F3F #541A71 #7925A3 #9D35D0

Accessibility & contrast

On white

11.91
#541A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#541A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A71
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A71#FFFFFF#000000##FFFFFF
##541A711.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#0C386F
Tritanopia (blue-blind)
#502E44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #541a71;
/* rgb */ color: rgb(84, 26, 113);
/* oklch */ color: oklch(35.5% 0.145 311.6);
Tailwind
colors: {
  custom: {
    50: '#885d9a',
    500: '#541a71',
    950: '#000000',
  },
}
SCSS
$custom: #541a71;
$custom-light: #885d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#541a71",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 280,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35507,
    "c": 0.14452,
    "h": 311.6
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#541A71
secondary
#63A641
accent
#E64279
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541A71

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

Preview Lab → · Contrast checker → · Palette generator →

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