#541F4E#541F4E

#541F4E is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.8% C 0.102 H 332.2°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#541F4E
RGBrgb(84, 31, 78)
HSLhsl(307, 46%, 23%)
HSVhsv(307, 63%, 33%)
CMYKcmyk(0%, 63.1%, 7.1%, 67.1%)
CIE-LABlab(21.64, 31.42, -17.37)
CIE-LCHlch(21.64, 35.90, 331.07°)
OKLaboklab(33.76% 0.0899 -0.0475)
OKLCHoklch(33.76% 0.102 332.2)
XYZxyz(5.5213, 3.4152, 7.5747)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F4E #1F5425
analogous
#3F1F54 #541F4E #541F34
triadic
#541F4E #4E541F #1F4E54
tetradic
#541F4E #543F1F #1F5425 #1F3454
square
#541F4E #543F1F #1F5425 #1F3454
split-complementary
#541F4E #34541F #1F543F
monochromatic
#160815 #270F24 #541F4E #812F78 #AD40A1

Accessibility & contrast

On white

12.48
#541F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#541F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F4E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F4E#FFFFFF#000000##FFFFFF
##541F4E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2F4F
Deuteranopia (green-blind)
#2E374D
Tritanopia (blue-blind)
#582333
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #541f4e;
/* rgb */ color: rgb(84, 31, 78);
/* oklch */ color: oklch(33.8% 0.102 332.2);
Tailwind
colors: {
  custom: {
    50: '#865e7f',
    500: '#541f4e',
    950: '#000000',
  },
}
SCSS
$custom: #541f4e;
$custom-light: #865e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#541f4e",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 306.792,
    "s": 46.087,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33756,
    "c": 0.10168,
    "h": 332.2
  },
  "luminance": 0.03415
}

Semantic roles & 50–950 ramp

primary
#541F4E
secondary
#46894E
accent
#D66152
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #541F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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