#541B57#541B57

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

Color values

HEX#541B57
RGBrgb(84, 27, 87)
HSLhsl(297, 53%, 22%)
HSVhsv(297, 69%, 34%)
CMYKcmyk(3.4%, 69%, 0%, 65.9%)
CIE-LABlab(21.42, 35.19, -23.75)
CIE-LCHlch(21.42, 42.45, 325.99°)
OKLaboklab(33.77% 0.0966 -0.0658)
OKLCHoklch(33.77% 0.117 325.7)
XYZxyz(5.7683, 3.3572, 9.3591)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B57 #1E571B
analogous
#361B57 #541B57 #571B3C
triadic
#541B57 #57541B #1B5754
tetradic
#541B57 #57361B #1E571B #1B3C57
square
#541B57 #57361B #1E571B #1B3C57
split-complementary
#541B57 #3C571B #1B5736
monochromatic
#170717 #270D28 #541B57 #812986 #AE38B4

Accessibility & contrast

On white

12.56
#541B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#541B57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B57
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B57#FFFFFF#000000##FFFFFF
##541B571.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112F59
Deuteranopia (green-blind)
#273655
Tritanopia (blue-blind)
#562436
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #541b57;
/* rgb */ color: rgb(84, 27, 87);
/* oklch */ color: oklch(33.8% 0.117 325.7);
Tailwind
colors: {
  custom: {
    50: '#865c86',
    500: '#541b57',
    950: '#000000',
  },
}
SCSS
$custom: #541b57;
$custom-light: #865c86;
$custom-dark: #000000;
JSON
{
  "hex": "#541b57",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 297,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33765,
    "c": 0.11685,
    "h": 325.7
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#541B57
secondary
#458D41
accent
#DC4C53
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #541B57

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

Preview Lab → · Contrast checker → · Palette generator →

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