#541D8A#541D8A

#541D8A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.167 H 301.5°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#541D8A
RGBrgb(84, 29, 138)
HSLhsl(270, 65%, 33%)
HSVhsv(270, 79%, 54%)
CMYKcmyk(39.1%, 79%, 0%, 45.9%)
CIE-LABlab(25.56, 46.05, -49.94)
CIE-LCHlch(25.56, 67.93, 312.67°)
OKLaboklab(37.92% 0.0875 -0.1426)
OKLCHoklch(37.92% 0.167 301.5)
XYZxyz(8.6818, 4.5985, 24.4700)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541D8A #538A1D
analogous
#1D1D8A #541D8A #8A1D89
triadic
#541D8A #8A541D #1D8A54
tetradic
#541D8A #8A1D1D #538A1D #1D898A
square
#541D8A #8A1D1D #538A1D #1D898A
split-complementary
#541D8A #898A1D #1D8A1D
monochromatic
#160825 #351257 #541D8A #7328BD #9149D9

Accessibility & contrast

On white

10.94
#541D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#541D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541D8A
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541D8A#FFFFFF#000000##FFFFFF
##541D8A1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#483A53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541d8a;
/* rgb */ color: rgb(84, 29, 138);
/* oklch */ color: oklch(37.9% 0.167 301.5);
Tailwind
colors: {
  custom: {
    50: '#8a60ad',
    500: '#541d8a',
    950: '#000000',
  },
}
SCSS
$custom: #541d8a;
$custom-light: #8a60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#541d8a",
  "rgb": {
    "r": 84,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 270.275,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37915,
    "c": 0.16732,
    "h": 301.5
  },
  "luminance": 0.04599
}

Semantic roles & 50–950 ramp

primary
#541D8A
secondary
#81BB48
accent
#E84093
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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