#541871#541871

#541871 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.147 H 311.9°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#541871
RGBrgb(84, 24, 113)
HSLhsl(280, 65%, 27%)
HSVhsv(280, 79%, 44%)
CMYKcmyk(25.7%, 78.8%, 0%, 55.7%)
CIE-LABlab(22.76, 42.14, -38.65)
CIE-LCHlch(22.76, 57.19, 317.47°)
OKLaboklab(35.3% 0.0981 -0.1094)
OKLCHoklch(35.3% 0.147 311.9)
XYZxyz(6.9629, 3.7305, 15.9729)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541871 #357118
analogous
#271871 #541871 #711862
triadic
#541871 #715418 #187154
tetradic
#541871 #712718 #357118 #186271
square
#541871 #712718 #357118 #186271
split-complementary
#541871 #627118 #187127
monochromatic
#130519 #2E0D3F #541871 #7A23A3 #9E30D3

Accessibility & contrast

On white

12.03
#541871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541871
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541871#FFFFFF#000000##FFFFFF
##5418711.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#09376F
Tritanopia (blue-blind)
#502D43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #541871;
/* rgb */ color: rgb(84, 24, 113);
/* oklch */ color: oklch(35.3% 0.147 311.9);
Tailwind
colors: {
  custom: {
    50: '#885c9a',
    500: '#541871',
    950: '#000000',
  },
}
SCSS
$custom: #541871;
$custom-light: #885c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#541871",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 280.449,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.353,
    "c": 0.14691,
    "h": 311.9
  },
  "luminance": 0.0373
}

Semantic roles & 50–950 ramp

primary
#541871
secondary
#60A63E
accent
#E84077
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541871

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

Preview Lab → · Contrast checker → · Palette generator →

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