#541971#541971

#541971 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.146 H 311.8°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#541971
RGBrgb(84, 25, 113)
HSLhsl(280, 64%, 27%)
HSVhsv(280, 78%, 44%)
CMYKcmyk(25.7%, 77.9%, 0%, 55.7%)
CIE-LABlab(22.90, 41.73, -38.42)
CIE-LCHlch(22.90, 56.72, 317.37°)
OKLaboklab(35.4% 0.0971 -0.1087)
OKLCHoklch(35.4% 0.146 311.8)
XYZxyz(6.9839, 3.7725, 15.9799)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541971 #367119
analogous
#281971 #541971 #711962
triadic
#541971 #715419 #197154
tetradic
#541971 #712819 #367119 #196271
square
#541971 #712819 #367119 #196271
split-complementary
#541971 #627119 #197128
monochromatic
#130619 #2F0E3F #541971 #7924A3 #9D33D2

Accessibility & contrast

On white

11.97
#541971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#541971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541971
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541971#FFFFFF#000000##FFFFFF
##5419711.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#0B386F
Tritanopia (blue-blind)
#502D44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #541971;
/* rgb */ color: rgb(84, 25, 113);
/* oklch */ color: oklch(35.4% 0.146 311.8);
Tailwind
colors: {
  custom: {
    50: '#885c9a',
    500: '#541971',
    950: '#000000',
  },
}
SCSS
$custom: #541971;
$custom-light: #885c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#541971",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 280.227,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35402,
    "c": 0.14573,
    "h": 311.8
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#541971
secondary
#61A640
accent
#E74178
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541971

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

Preview Lab → · Contrast checker → · Palette generator →

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