#541D87#541D87

#541D87 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.164 H 302.6°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#541D87
RGBrgb(84, 29, 135)
HSLhsl(271, 65%, 32%)
HSVhsv(271, 79%, 53%)
CMYKcmyk(37.8%, 78.5%, 0%, 47.1%)
CIE-LABlab(25.30, 45.30, -48.49)
CIE-LCHlch(25.30, 66.36, 313.05°)
OKLaboklab(37.65% 0.0883 -0.1383)
OKLCHoklch(37.65% 0.164 302.6)
XYZxyz(8.4677, 4.5128, 23.3419)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541D87 #50871D
analogous
#1F1D87 #541D87 #871D85
triadic
#541D87 #87541D #1D8754
tetradic
#541D87 #871F1D #50871D #1D8587
square
#541D87 #871F1D #50871D #1D8587
split-complementary
#541D87 #85871D #1D871F
monochromatic
#150722 #351255 #541D87 #7328B9 #9247D7

Accessibility & contrast

On white

11.04
#541D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#541D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541D87
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541D87#FFFFFF#000000##FFFFFF
##541D871.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#493951
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541d87;
/* rgb */ color: rgb(84, 29, 135);
/* oklch */ color: oklch(37.7% 0.164 302.6);
Tailwind
colors: {
  custom: {
    50: '#8960ab',
    500: '#541d87',
    950: '#000000',
  },
}
SCSS
$custom: #541d87;
$custom-light: #8960ab;
$custom-dark: #000000;
JSON
{
  "hex": "#541d87",
  "rgb": {
    "r": 84,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 271.132,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37652,
    "c": 0.16413,
    "h": 302.6
  },
  "luminance": 0.04513
}

Semantic roles & 50–950 ramp

primary
#541D87
secondary
#7EB946
accent
#E84091
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541D87

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

Preview Lab → · Contrast checker → · Palette generator →

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