#541C81#541C81

#541C81 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.159 H 304.8°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#541C81
RGBrgb(84, 28, 129)
HSLhsl(273, 64%, 31%)
HSVhsv(273, 78%, 51%)
CMYKcmyk(34.9%, 78.3%, 0%, 49.4%)
CIE-LABlab(24.64, 44.25, -45.80)
CIE-LCHlch(24.64, 63.68, 314.02°)
OKLaboklab(37.03% 0.0908 -0.1304)
OKLCHoklch(37.03% 0.159 304.8)
XYZxyz(8.0330, 4.3003, 21.1715)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C81 #49811C
analogous
#211C81 #541C81 #811C7B
triadic
#541C81 #81541C #1C8154
tetradic
#541C81 #81211C #49811C #1C7B81
square
#541C81 #81211C #49811C #1C7B81
split-complementary
#541C81 #7B811C #1C8121
monochromatic
#13061C #33114F #541C81 #7527B3 #9442D6

Accessibility & contrast

On white

11.29
#541C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#541C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541C81
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541C81#FFFFFF#000000##FFFFFF
##541C811.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#4B364D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541c81;
/* rgb */ color: rgb(84, 28, 129);
/* oklch */ color: oklch(37.0% 0.159 304.8);
Tailwind
colors: {
  custom: {
    50: '#895fa6',
    500: '#541c81',
    950: '#000000',
  },
}
SCSS
$custom: #541c81;
$custom-light: #895fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#541c81",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 273.267,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37031,
    "c": 0.15888,
    "h": 304.8
  },
  "luminance": 0.043
}

Semantic roles & 50–950 ramp

primary
#541C81
secondary
#76B444
accent
#E7408B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541C81

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

Preview Lab → · Contrast checker → · Palette generator →

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