#541472#541472

#541472 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.152 H 311.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#541472
RGBrgb(84, 20, 114)
HSLhsl(281, 70%, 26%)
HSVhsv(281, 82%, 45%)
CMYKcmyk(26.3%, 82.5%, 0%, 55.3%)
CIE-LABlab(22.30, 43.91, -40.04)
CIE-LCHlch(22.30, 59.43, 317.64°)
OKLaboklab(35% 0.1016 -0.1134)
OKLCHoklch(35% 0.152 311.9)
XYZxyz(6.9430, 3.6002, 16.2455)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541472 #327214
analogous
#251472 #541472 #721461
triadic
#541472 #725414 #147254
tetradic
#541472 #722514 #327214 #146172
square
#541472 #722514 #327214 #146172
split-complementary
#541472 #617214 #147225
monochromatic
#13051A #2E0B3E #541472 #7A1DA6 #A027D9

Accessibility & contrast

On white

12.21
#541472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#541472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541472
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541472#FFFFFF#000000##FFFFFF
##5414721.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#013670
Tritanopia (blue-blind)
#502B43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #541472;
/* rgb */ color: rgb(84, 20, 114);
/* oklch */ color: oklch(35.0% 0.152 311.9);
Tailwind
colors: {
  custom: {
    50: '#885a9b',
    500: '#541472',
    950: '#000000',
  },
}
SCSS
$custom: #541472;
$custom-light: #885a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#541472",
  "rgb": {
    "r": 84,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 280.851,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35003,
    "c": 0.15226,
    "h": 311.9
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#541472
secondary
#5DA839
accent
#ED3B74
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541472

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

Preview Lab → · Contrast checker → · Palette generator →

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