#541D82#541D82

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

Color values

HEX#541D82
RGBrgb(84, 29, 130)
HSLhsl(273, 64%, 31%)
HSVhsv(273, 78%, 51%)
CMYKcmyk(35.4%, 77.7%, 0%, 49%)
CIE-LABlab(24.88, 44.06, -46.05)
CIE-LCHlch(24.88, 63.73, 313.74°)
OKLaboklab(37.22% 0.0896 -0.1311)
OKLCHoklch(37.22% 0.159 304.3)
XYZxyz(8.1239, 4.3753, 21.5313)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541D82 #4B821D
analogous
#211D82 #541D82 #821D7D
triadic
#541D82 #82541D #1D8254
tetradic
#541D82 #82211D #4B821D #1D7D82
square
#541D82 #82211D #4B821D #1D7D82
split-complementary
#541D82 #7D821D #1D8221
monochromatic
#13071E #341250 #541D82 #7428B4 #9344D5

Accessibility & contrast

On white

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

On black

1.88
#541D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##541D82#FFFFFF#000000##FFFFFF
##541D821.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#4B364E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541d82;
/* rgb */ color: rgb(84, 29, 130);
/* oklch */ color: oklch(37.2% 0.159 304.3);
Tailwind
colors: {
  custom: {
    50: '#895fa7',
    500: '#541d82',
    950: '#000000',
  },
}
SCSS
$custom: #541d82;
$custom-light: #895fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#541d82",
  "rgb": {
    "r": 84,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 272.673,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37222,
    "c": 0.15881,
    "h": 304.3
  },
  "luminance": 0.04375
}

Semantic roles & 50–950 ramp

primary
#541D82
secondary
#78B546
accent
#E7418D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541D82

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

Preview Lab → · Contrast checker → · Palette generator →

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