#541D8D#541D8D

#541D8D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.171 H 300.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#541D8D
RGBrgb(84, 29, 141)
HSLhsl(269, 66%, 33%)
HSVhsv(269, 79%, 55%)
CMYKcmyk(40.4%, 79.4%, 0%, 44.7%)
CIE-LABlab(25.82, 46.80, -51.38)
CIE-LCHlch(25.82, 69.50, 312.33°)
OKLaboklab(38.18% 0.0867 -0.1468)
OKLCHoklch(38.18% 0.171 300.6)
XYZxyz(8.9020, 4.6866, 25.6297)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541D8D #568D1D
analogous
#1D1E8D #541D8D #8C1D8D
triadic
#541D8D #8D541D #1D8D54
tetradic
#541D8D #8D1D1E #568D1D #1D8D8C
square
#541D8D #8D1D1E #568D1D #1D8D8C
split-complementary
#541D8D #8D8C1D #1E8D1D
monochromatic
#180827 #36135A #541D8D #7227C0 #914BDA

Accessibility & contrast

On white

10.84
#541D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#541D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541D8D
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541D8D#FFFFFF#000000##FFFFFF
##541D8D1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#473B55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541d8d;
/* rgb */ color: rgb(84, 29, 141);
/* oklch */ color: oklch(38.2% 0.171 300.6);
Tailwind
colors: {
  custom: {
    50: '#8a60af',
    500: '#541d8d',
    950: '#000000',
  },
}
SCSS
$custom: #541d8d;
$custom-light: #8a60af;
$custom-dark: #000000;
JSON
{
  "hex": "#541d8d",
  "rgb": {
    "r": 84,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 269.464,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38181,
    "c": 0.17051,
    "h": 300.6
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#541D8D
secondary
#84BC4A
accent
#E93F95
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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