#541E78#541E78

#541E78 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.147 H 308.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#541E78
RGBrgb(84, 30, 120)
HSLhsl(276, 60%, 29%)
HSVhsv(276, 75%, 47%)
CMYKcmyk(30%, 75%, 0%, 52.9%)
CIE-LABlab(24.22, 41.17, -40.77)
CIE-LCHlch(24.22, 57.94, 315.28°)
OKLaboklab(36.51% 0.0906 -0.1156)
OKLCHoklch(36.51% 0.147 308.1)
XYZxyz(7.5099, 4.1695, 18.1748)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541E78 #42781E
analogous
#271E78 #541E78 #781E6F
triadic
#541E78 #78541E #1E7854
tetradic
#541E78 #78271E #42781E #1E6F78
square
#541E78 #78271E #42781E #1E6F78
split-complementary
#541E78 #6F781E #1E7827
monochromatic
#110618 #321247 #541E78 #762AA9 #9641CF

Accessibility & contrast

On white

11.45
#541E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#541E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541E78
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541E78#FFFFFF#000000##FFFFFF
##541E781.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#033A76
Tritanopia (blue-blind)
#4E3349
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541e78;
/* rgb */ color: rgb(84, 30, 120);
/* oklch */ color: oklch(36.5% 0.147 308.1);
Tailwind
colors: {
  custom: {
    50: '#885fa0',
    500: '#541e78',
    950: '#000000',
  },
}
SCSS
$custom: #541e78;
$custom-light: #885fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#541e78",
  "rgb": {
    "r": 84,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 276,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36509,
    "c": 0.1469,
    "h": 308.1
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#541E78
secondary
#6FAC46
accent
#E34584
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #541E78

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

Preview Lab → · Contrast checker → · Palette generator →

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