#541371#541371

#541371 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.8% C 0.152 H 312.4°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#541371
RGBrgb(84, 19, 113)
HSLhsl(281, 71%, 26%)
HSVhsv(281, 83%, 44%)
CMYKcmyk(25.7%, 83.2%, 0%, 55.7%)
CIE-LABlab(22.10, 44.05, -39.72)
CIE-LCHlch(22.10, 59.31, 317.96°)
OKLaboklab(34.84% 0.1027 -0.1125)
OKLCHoklch(34.84% 0.152 312.4)
XYZxyz(6.8691, 3.5430, 15.9416)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541371 #307113
analogous
#251371 #541371 #71135F
triadic
#541371 #715413 #137154
tetradic
#541371 #712513 #307113 #135F71
square
#541371 #712513 #307113 #135F71
split-complementary
#541371 #5F7113 #137125
monochromatic
#13041A #2D0A3D #541371 #7B1CA5 #A225DA

Accessibility & contrast

On white

12.29
#541371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#541371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541371
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541371#FFFFFF#000000##FFFFFF
##5413711.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#02366F
Tritanopia (blue-blind)
#512A42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #541371;
/* rgb */ color: rgb(84, 19, 113);
/* oklch */ color: oklch(34.8% 0.152 312.4);
Tailwind
colors: {
  custom: {
    50: '#885a9a',
    500: '#541371',
    950: '#000000',
  },
}
SCSS
$custom: #541371;
$custom-light: #885a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#541371",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 281.489,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34835,
    "c": 0.15231,
    "h": 312.4
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#541371
secondary
#5BA838
accent
#EE3A71
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541371

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

Preview Lab → · Contrast checker → · Palette generator →

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