#541A72#541A72

#541A72 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.146 H 311.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#541A72
RGBrgb(84, 26, 114)
HSLhsl(280, 63%, 27%)
HSVhsv(280, 77%, 45%)
CMYKcmyk(26.3%, 77.2%, 0%, 55.3%)
CIE-LABlab(23.13, 41.53, -38.70)
CIE-LCHlch(23.13, 56.77, 317.03°)
OKLaboklab(35.59% 0.0959 -0.1095)
OKLCHoklch(35.59% 0.146 311.2)
XYZxyz(7.0622, 3.8387, 16.2852)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A72 #38721A
analogous
#281A72 #541A72 #721A64
triadic
#541A72 #72541A #1A7254
tetradic
#541A72 #72281A #38721A #1A6472
square
#541A72 #72281A #38721A #1A6472
split-complementary
#541A72 #64721A #1A7228
monochromatic
#120619 #2F0F40 #541A72 #7925A4 #9C35D1

Accessibility & contrast

On white

11.88
#541A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#541A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A72
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A72#FFFFFF#000000##FFFFFF
##541A721.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#0A3870
Tritanopia (blue-blind)
#502E45
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #541a72;
/* rgb */ color: rgb(84, 26, 114);
/* oklch */ color: oklch(35.6% 0.146 311.2);
Tailwind
colors: {
  custom: {
    50: '#885d9b',
    500: '#541a72',
    950: '#000000',
  },
}
SCSS
$custom: #541a72;
$custom-light: #885d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#541a72",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 279.545,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35586,
    "c": 0.14555,
    "h": 311.2
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#541A72
secondary
#64A741
accent
#E6427A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541A72

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

Preview Lab → · Contrast checker → · Palette generator →

#541A72 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva