#541D78#541D78

#541D78 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.148 H 308.2°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#541D78
RGBrgb(84, 29, 120)
HSLhsl(276, 61%, 29%)
HSVhsv(276, 76%, 47%)
CMYKcmyk(30%, 75.8%, 0%, 52.9%)
CIE-LABlab(24.06, 41.63, -41.03)
CIE-LCHlch(24.06, 58.45, 315.42°)
OKLaboklab(36.39% 0.0917 -0.1164)
OKLCHoklch(36.39% 0.148 308.2)
XYZxyz(7.4850, 4.1197, 18.1665)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541D78 #41781D
analogous
#271D78 #541D78 #781D6F
triadic
#541D78 #78541D #1D7854
tetradic
#541D78 #78271D #41781D #1D6F78
square
#541D78 #78271D #41781D #1D6F78
split-complementary
#541D78 #6F781D #1D7827
monochromatic
#110619 #311147 #541D78 #7729A9 #973FD1

Accessibility & contrast

On white

11.51
#541D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#541D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541D78
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541D78#FFFFFF#000000##FFFFFF
##541D781.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#013A76
Tritanopia (blue-blind)
#4E3249
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541d78;
/* rgb */ color: rgb(84, 29, 120);
/* oklch */ color: oklch(36.4% 0.148 308.2);
Tailwind
colors: {
  custom: {
    50: '#885fa0',
    500: '#541d78',
    950: '#000000',
  },
}
SCSS
$custom: #541d78;
$custom-light: #885fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#541d78",
  "rgb": {
    "r": 84,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 276.264,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36395,
    "c": 0.14815,
    "h": 308.2
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#541D78
secondary
#6EAC45
accent
#E44483
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #541D78

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

Preview Lab → · Contrast checker → · Palette generator →

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