#541A78#541A78

#541A78 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.152 H 308.6°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#541A78
RGBrgb(84, 26, 120)
HSLhsl(277, 64%, 29%)
HSVhsv(277, 78%, 47%)
CMYKcmyk(30%, 78.3%, 0%, 52.9%)
CIE-LABlab(23.60, 42.94, -41.77)
CIE-LCHlch(23.60, 59.90, 315.79°)
OKLaboklab(36.07% 0.0947 -0.1186)
OKLCHoklch(36.07% 0.152 308.6)
XYZxyz(7.4150, 3.9798, 18.1432)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A78 #3E781A
analogous
#251A78 #541A78 #781A6D
triadic
#541A78 #78541A #1A7854
tetradic
#541A78 #78251A #3E781A #1A6D78
square
#541A78 #78251A #3E781A #1A6D78
split-complementary
#541A78 #6D781A #1A7825
monochromatic
#120519 #310F46 #541A78 #7725AA #9838D4

Accessibility & contrast

On white

11.69
#541A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#541A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A78
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A78#FFFFFF#000000##FFFFFF
##541A781.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003976
Tritanopia (blue-blind)
#4E3148
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #541a78;
/* rgb */ color: rgb(84, 26, 120);
/* oklch */ color: oklch(36.1% 0.152 308.6);
Tailwind
colors: {
  custom: {
    50: '#885da0',
    500: '#541a78',
    950: '#000000',
  },
}
SCSS
$custom: #541a78;
$custom-light: #885da0;
$custom-dark: #000000;
JSON
{
  "hex": "#541a78",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 277.021,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3607,
    "c": 0.15175,
    "h": 308.6
  },
  "luminance": 0.0398
}

Semantic roles & 50–950 ramp

primary
#541A78
secondary
#6AAC41
accent
#E74080
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #541A78

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

Preview Lab → · Contrast checker → · Palette generator →

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