#541D89#541D89

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

Color values

HEX#541D89
RGBrgb(84, 29, 137)
HSLhsl(271, 65%, 33%)
HSVhsv(271, 79%, 54%)
CMYKcmyk(38.7%, 78.8%, 0%, 46.3%)
CIE-LABlab(25.47, 45.80, -49.46)
CIE-LCHlch(25.47, 67.41, 312.80°)
OKLaboklab(37.83% 0.0878 -0.1412)
OKLCHoklch(37.83% 0.166 301.9)
XYZxyz(8.6098, 4.5697, 24.0905)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541D89 #52891D
analogous
#1E1D89 #541D89 #891D88
triadic
#541D89 #89541D #1D8954
tetradic
#541D89 #891E1D #52891D #1D8889
square
#541D89 #891E1D #52891D #1D8889
split-complementary
#541D89 #88891D #1D891E
monochromatic
#160824 #351256 #541D89 #7328BC #9248D8

Accessibility & contrast

On white

10.97
#541D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541D89
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541D89#FFFFFF#000000##FFFFFF
##541D891.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003C87
Tritanopia (blue-blind)
#483952
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541d89;
/* rgb */ color: rgb(84, 29, 137);
/* oklch */ color: oklch(37.8% 0.166 301.9);
Tailwind
colors: {
  custom: {
    50: '#8a60ac',
    500: '#541d89',
    950: '#000000',
  },
}
SCSS
$custom: #541d89;
$custom-light: #8a60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#541d89",
  "rgb": {
    "r": 84,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 270.556,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37827,
    "c": 0.16626,
    "h": 301.9
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#541D89
secondary
#80BA47
accent
#E84092
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541D89

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

Preview Lab → · Contrast checker → · Palette generator →

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