#541E87#541E87

#541E87 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.163 H 302.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#541E87
RGBrgb(84, 30, 135)
HSLhsl(271, 64%, 32%)
HSVhsv(271, 78%, 53%)
CMYKcmyk(37.8%, 77.8%, 0%, 47.1%)
CIE-LABlab(25.45, 44.87, -48.25)
CIE-LCHlch(25.45, 65.88, 312.92°)
OKLaboklab(37.76% 0.0874 -0.1376)
OKLCHoklch(37.76% 0.163 302.4)
XYZxyz(8.4926, 4.5626, 23.3502)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541E87 #51871E
analogous
#201E87 #541E87 #871E86
triadic
#541E87 #87541E #1E8754
tetradic
#541E87 #87201E #51871E #1E8687
square
#541E87 #87201E #51871E #1E8687
split-complementary
#541E87 #86871E #1E8720
monochromatic
#160823 #351355 #541E87 #7329B9 #9249D7

Accessibility & contrast

On white

10.98
#541E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#541E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541E87
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541E87#FFFFFF#000000##FFFFFF
##541E871.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#493951
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541e87;
/* rgb */ color: rgb(84, 30, 135);
/* oklch */ color: oklch(37.8% 0.163 302.4);
Tailwind
colors: {
  custom: {
    50: '#8960ab',
    500: '#541e87',
    950: '#000000',
  },
}
SCSS
$custom: #541e87;
$custom-light: #8960ab;
$custom-dark: #000000;
JSON
{
  "hex": "#541e87",
  "rgb": {
    "r": 84,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 270.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37758,
    "c": 0.16303,
    "h": 302.4
  },
  "luminance": 0.04563
}

Semantic roles & 50–950 ramp

primary
#541E87
secondary
#7FB948
accent
#E74192
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541E87

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

Preview Lab → · Contrast checker → · Palette generator →

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