#541771#541771

#541771 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.148 H 312.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#541771
RGBrgb(84, 23, 113)
HSLhsl(281, 66%, 27%)
HSVhsv(281, 80%, 44%)
CMYKcmyk(25.7%, 79.6%, 0%, 55.7%)
CIE-LABlab(22.62, 42.55, -38.88)
CIE-LCHlch(22.62, 57.64, 317.58°)
OKLaboklab(35.2% 0.099 -0.11)
OKLCHoklch(35.2% 0.148 312)
XYZxyz(6.9426, 3.6901, 15.9661)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541771 #347117
analogous
#271771 #541771 #711761
triadic
#541771 #715417 #177154
tetradic
#541771 #712717 #347117 #176171
square
#541771 #712717 #347117 #176171
split-complementary
#541771 #617117 #177127
monochromatic
#130519 #2E0D3E #541771 #7A21A4 #9F2ED4

Accessibility & contrast

On white

12.08
#541771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#541771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541771
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541771#FFFFFF#000000##FFFFFF
##5417711.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541771;
/* rgb */ color: rgb(84, 23, 113);
/* oklch */ color: oklch(35.2% 0.148 312.0);
Tailwind
colors: {
  custom: {
    50: '#885c9a',
    500: '#541771',
    950: '#000000',
  },
}
SCSS
$custom: #541771;
$custom-light: #885c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#541771",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 280.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.352,
    "c": 0.14805,
    "h": 312
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#541771
secondary
#5FA73D
accent
#E93F76
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541771

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

Preview Lab → · Contrast checker → · Palette generator →

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