#541B4E#541B4E

#541B4E is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.2% C 0.108 H 332.1°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#541B4E
RGBrgb(84, 27, 78)
HSLhsl(306, 51%, 22%)
HSVhsv(306, 68%, 33%)
CMYKcmyk(0%, 67.9%, 7.1%, 67.1%)
CIE-LABlab(20.90, 33.44, -18.51)
CIE-LCHlch(20.90, 38.22, 331.02°)
OKLaboklab(33.22% 0.0958 -0.0507)
OKLCHoklch(33.22% 0.108 332.1)
XYZxyz(5.4232, 3.2191, 7.5420)
Luminance0.0322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B4E #1B5421
analogous
#3E1B54 #541B4E #541B32
triadic
#541B4E #4E541B #1B4E54
tetradic
#541B4E #543E1B #1B5421 #1B3254
square
#541B4E #543E1B #1B5421 #1B3254
split-complementary
#541B4E #32541B #1B543E
monochromatic
#170716 #260C23 #541B4E #822A79 #B139A4

Accessibility & contrast

On white

12.78
#541B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#541B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B4E
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B4E#FFFFFF#000000##FFFFFF
##541B4E1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192D50
Deuteranopia (green-blind)
#2B354C
Tritanopia (blue-blind)
#582031
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #541b4e;
/* rgb */ color: rgb(84, 27, 78);
/* oklch */ color: oklch(33.2% 0.108 332.1);
Tailwind
colors: {
  custom: {
    50: '#865c7f',
    500: '#541b4e',
    950: '#000000',
  },
}
SCSS
$custom: #541b4e;
$custom-light: #865c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#541b4e",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 306.316,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33219,
    "c": 0.10834,
    "h": 332.1
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#541B4E
secondary
#418A49
accent
#DB5C4D
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #541B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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