#541A74#541A74

#541A74 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.148 H 310.3°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#541A74
RGBrgb(84, 26, 116)
HSLhsl(279, 63%, 28%)
HSVhsv(279, 78%, 45%)
CMYKcmyk(27.6%, 77.6%, 0%, 54.5%)
CIE-LABlab(23.29, 42.00, -39.73)
CIE-LCHlch(23.29, 57.81, 316.59°)
OKLaboklab(35.75% 0.0955 -0.1126)
OKLCHoklch(35.75% 0.148 310.3)
XYZxyz(7.1773, 3.8847, 16.8913)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A74 #3A741A
analogous
#271A74 #541A74 #741A67
triadic
#541A74 #74541A #1A7454
tetradic
#541A74 #74271A #3A741A #1A6774
square
#541A74 #74271A #3A741A #1A6774
split-complementary
#541A74 #67741A #1A7427
monochromatic
#120619 #300F42 #541A74 #7825A6 #9B36D2

Accessibility & contrast

On white

11.82
#541A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#541A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A74
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A74#FFFFFF#000000##FFFFFF
##541A741.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#053872
Tritanopia (blue-blind)
#502F46
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #541a74;
/* rgb */ color: rgb(84, 26, 116);
/* oklch */ color: oklch(35.7% 0.148 310.3);
Tailwind
colors: {
  custom: {
    50: '#885d9d',
    500: '#541a74',
    950: '#000000',
  },
}
SCSS
$custom: #541a74;
$custom-light: #885d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#541a74",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 278.667,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35746,
    "c": 0.14761,
    "h": 310.3
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#541A74
secondary
#66A941
accent
#E6417C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541A74

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

Preview Lab → · Contrast checker → · Palette generator →

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