#541A87#541A87

#541A87 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.167 H 302.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#541A87
RGBrgb(84, 26, 135)
HSLhsl(272, 68%, 32%)
HSVhsv(272, 81%, 53%)
CMYKcmyk(37.8%, 80.7%, 0%, 47.1%)
CIE-LABlab(24.87, 46.54, -49.20)
CIE-LCHlch(24.87, 67.72, 313.41°)
OKLaboklab(37.35% 0.091 -0.1404)
OKLCHoklch(37.35% 0.167 302.9)
XYZxyz(8.3977, 4.3729, 23.3186)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A87 #4D871A
analogous
#1E1A87 #541A87 #871A84
triadic
#541A87 #87541A #1A8754
tetradic
#541A87 #871E1A #4D871A #1A8487
square
#541A87 #871E1A #4D871A #1A8487
split-complementary
#541A87 #84871A #1A871E
monochromatic
#140620 #341054 #541A87 #7424BA #9341DA

Accessibility & contrast

On white

11.20
#541A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#541A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A87
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A87#FFFFFF#000000##FFFFFF
##541A871.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#493750
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541a87;
/* rgb */ color: rgb(84, 26, 135);
/* oklch */ color: oklch(37.4% 0.167 302.9);
Tailwind
colors: {
  custom: {
    50: '#8a5eab',
    500: '#541a87',
    950: '#000000',
  },
}
SCSS
$custom: #541a87;
$custom-light: #8a5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#541a87",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 271.927,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3735,
    "c": 0.16728,
    "h": 302.9
  },
  "luminance": 0.04373
}

Semantic roles & 50–950 ramp

primary
#541A87
secondary
#7BBA42
accent
#EB3D8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541A87

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

Preview Lab → · Contrast checker → · Palette generator →

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