#541C84#541C84

#541C84 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.162 H 303.7°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#541C84
RGBrgb(84, 28, 132)
HSLhsl(272, 65%, 31%)
HSVhsv(272, 79%, 52%)
CMYKcmyk(36.4%, 78.8%, 0%, 48.2%)
CIE-LABlab(24.89, 44.98, -47.27)
CIE-LCHlch(24.89, 65.25, 313.58°)
OKLaboklab(37.29% 0.09 -0.1347)
OKLCHoklch(37.29% 0.162 303.7)
XYZxyz(8.2353, 4.3813, 22.2371)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C84 #4C841C
analogous
#201C84 #541C84 #841C80
triadic
#541C84 #84541C #1C8454
tetradic
#541C84 #84201C #4C841C #1C8084
square
#541C84 #84201C #4C841C #1C8084
split-complementary
#541C84 #80841C #1C8420
monochromatic
#14071F #341152 #541C84 #7427B6 #9343D7

Accessibility & contrast

On white

11.19
#541C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#541C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541C84
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541C84#FFFFFF#000000##FFFFFF
##541C841.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003B82
Tritanopia (blue-blind)
#4A374F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541c84;
/* rgb */ color: rgb(84, 28, 132);
/* oklch */ color: oklch(37.3% 0.162 303.7);
Tailwind
colors: {
  custom: {
    50: '#895fa9',
    500: '#541c84',
    950: '#000000',
  },
}
SCSS
$custom: #541c84;
$custom-light: #895fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#541c84",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 272.308,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37288,
    "c": 0.16205,
    "h": 303.7
  },
  "luminance": 0.04381
}

Semantic roles & 50–950 ramp

primary
#541C84
secondary
#79B745
accent
#E8408D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541C84

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

Preview Lab → · Contrast checker → · Palette generator →

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