#541271#541271

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

Color values

HEX#541271
RGBrgb(84, 18, 113)
HSLhsl(282, 73%, 26%)
HSVhsv(282, 84%, 44%)
CMYKcmyk(25.7%, 84.1%, 0%, 55.7%)
CIE-LABlab(21.98, 44.39, -39.92)
CIE-LCHlch(21.98, 59.70, 318.04°)
OKLaboklab(34.75% 0.1035 -0.113)
OKLCHoklch(34.75% 0.153 312.5)
XYZxyz(6.8526, 3.5099, 15.9361)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541271 #2F7112
analogous
#241271 #541271 #71125E
triadic
#541271 #715412 #127154
tetradic
#541271 #712412 #2F7112 #125E71
square
#541271 #712412 #2F7112 #125E71
split-complementary
#541271 #5E7112 #127124
monochromatic
#14041A #2D0A3C #541271 #7B1AA6 #A223DB

Accessibility & contrast

On white

12.34
#541271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#541271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541271
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541271#FFFFFF#000000##FFFFFF
##5412711.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541271;
/* rgb */ color: rgb(84, 18, 113);
/* oklch */ color: oklch(34.8% 0.153 312.5);
Tailwind
colors: {
  custom: {
    50: '#88599a',
    500: '#541271',
    950: '#000000',
  },
}
SCSS
$custom: #541271;
$custom-light: #88599a;
$custom-dark: #000000;
JSON
{
  "hex": "#541271",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 281.684,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34751,
    "c": 0.15328,
    "h": 312.5
  },
  "luminance": 0.0351
}

Semantic roles & 50–950 ramp

primary
#541271
secondary
#59A837
accent
#EF3970
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541271

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

Preview Lab → · Contrast checker → · Palette generator →

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