#541B5E#541B5E

#541B5E is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.2% C 0.124 H 321.4°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#541B5E
RGBrgb(84, 27, 94)
HSLhsl(291, 55%, 24%)
HSVhsv(291, 71%, 37%)
CMYKcmyk(10.6%, 71.3%, 0%, 63.1%)
CIE-LABlab(21.86, 36.64, -27.70)
CIE-LCHlch(21.86, 45.93, 322.91°)
OKLaboklab(34.23% 0.0967 -0.0773)
OKLCHoklch(34.23% 0.124 321.4)
XYZxyz(6.0682, 3.4771, 10.9390)
Luminance0.0348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B5E #255E1B
analogous
#321B5E #541B5E #5E1B46
triadic
#541B5E #5E541B #1B5E54
tetradic
#541B5E #5E321B #255E1B #1B465E
square
#541B5E #5E321B #255E1B #1B465E
split-complementary
#541B5E #465E1B #1B5E32
monochromatic
#150718 #2A0D2E #541B5E #7E298E #A936BD

Accessibility & contrast

On white

12.39
#541B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#541B5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B5E
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B5E#FFFFFF#000000##FFFFFF
##541B5E1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073060
Deuteranopia (green-blind)
#23365C
Tritanopia (blue-blind)
#55263A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #541b5e;
/* rgb */ color: rgb(84, 27, 94);
/* oklch */ color: oklch(34.2% 0.124 321.4);
Tailwind
colors: {
  custom: {
    50: '#875d8c',
    500: '#541b5e',
    950: '#000000',
  },
}
SCSS
$custom: #541b5e;
$custom-light: #875d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#541b5e",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 94
  },
  "hsl": {
    "h": 291.045,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34225,
    "c": 0.12378,
    "h": 321.4
  },
  "luminance": 0.03477
}

Semantic roles & 50–950 ramp

primary
#541B5E
secondary
#4D9441
accent
#DF495F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #541B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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