#541D8B#541D8B

#541D8B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.168 H 301.2°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#541D8B
RGBrgb(84, 29, 139)
HSLhsl(270, 65%, 33%)
HSVhsv(270, 79%, 55%)
CMYKcmyk(39.6%, 79.1%, 0%, 45.5%)
CIE-LABlab(25.65, 46.30, -50.42)
CIE-LCHlch(25.65, 68.45, 312.56°)
OKLaboklab(38% 0.0873 -0.144)
OKLCHoklch(38% 0.168 301.2)
XYZxyz(8.7546, 4.6276, 24.8531)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541D8B #548B1D
analogous
#1D1D8B #541D8B #8B1D8B
triadic
#541D8B #8B541D #1D8B54
tetradic
#541D8B #8B1D1D #548B1D #1D8B8B
square
#541D8B #8B1D1D #548B1D #1D8B8B
split-complementary
#541D8B #8B8B1D #1D8B1D
monochromatic
#170826 #351258 #541D8B #7328BE #9149D9

Accessibility & contrast

On white

10.91
#541D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#541D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541D8B
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541D8B#FFFFFF#000000##FFFFFF
##541D8B1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541d8b;
/* rgb */ color: rgb(84, 29, 139);
/* oklch */ color: oklch(38.0% 0.168 301.2);
Tailwind
colors: {
  custom: {
    50: '#8a60ae',
    500: '#541d8b',
    950: '#000000',
  },
}
SCSS
$custom: #541d8b;
$custom-light: #8a60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#541d8b",
  "rgb": {
    "r": 84,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 270,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38003,
    "c": 0.16838,
    "h": 301.2
  },
  "luminance": 0.04628
}

Semantic roles & 50–950 ramp

primary
#541D8B
secondary
#82BB49
accent
#E83F94
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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