#541571#541571

#541571 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.150 H 312.2°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#541571
RGBrgb(84, 21, 113)
HSLhsl(281, 69%, 26%)
HSVhsv(281, 81%, 44%)
CMYKcmyk(25.7%, 81.4%, 0%, 55.7%)
CIE-LABlab(22.35, 43.32, -39.32)
CIE-LCHlch(22.35, 58.50, 317.77°)
OKLaboklab(35.01% 0.1009 -0.1113)
OKLCHoklch(35.01% 0.15 312.2)
XYZxyz(6.9044, 3.6136, 15.9534)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541571 #327115
analogous
#261571 #541571 #711560
triadic
#541571 #715415 #157154
tetradic
#541571 #712615 #327115 #156071
square
#541571 #712615 #327115 #156071
split-complementary
#541571 #607115 #157126
monochromatic
#13051A #2E0B3D #541571 #7A1FA5 #A029D7

Accessibility & contrast

On white

12.19
#541571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#541571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541571
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541571#FFFFFF#000000##FFFFFF
##5415711.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#05376F
Tritanopia (blue-blind)
#502B43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #541571;
/* rgb */ color: rgb(84, 21, 113);
/* oklch */ color: oklch(35.0% 0.150 312.2);
Tailwind
colors: {
  custom: {
    50: '#885b9a',
    500: '#541571',
    950: '#000000',
  },
}
SCSS
$custom: #541571;
$custom-light: #885b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#541571",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 281.087,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35011,
    "c": 0.15025,
    "h": 312.2
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

primary
#541571
secondary
#5DA73B
accent
#EB3C74
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541571

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

Preview Lab → · Contrast checker → · Palette generator →

#541571 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva