#541A8E#541A8E

#541A8E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.175 H 300.6°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#541A8E
RGBrgb(84, 26, 142)
HSLhsl(270, 69%, 33%)
HSVhsv(270, 82%, 56%)
CMYKcmyk(40.8%, 81.7%, 0%, 44.3%)
CIE-LABlab(25.49, 48.26, -52.54)
CIE-LCHlch(25.49, 71.34, 312.57°)
OKLaboklab(37.98% 0.0889 -0.1502)
OKLCHoklch(37.98% 0.175 300.6)
XYZxyz(8.9068, 4.5765, 26.0000)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A8E #548E1A
analogous
#1A1A8E #541A8E #8E1A8E
triadic
#541A8E #8E541A #1A8E54
tetradic
#541A8E #8E1A1A #548E1A #1A8E8E
square
#541A8E #8E1A1A #548E1A #1A8E8E
split-complementary
#541A8E #8E8E1A #1A8E1A
monochromatic
#170727 #35115A #541A8E #7323C2 #9145DD

Accessibility & contrast

On white

10.96
#541A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#541A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A8E
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A8E#FFFFFF#000000##FFFFFF
##541A8E1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#473A55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541a8e;
/* rgb */ color: rgb(84, 26, 142);
/* oklch */ color: oklch(38.0% 0.175 300.6);
Tailwind
colors: {
  custom: {
    50: '#8a5fb0',
    500: '#541a8e',
    950: '#000000',
  },
}
SCSS
$custom: #541a8e;
$custom-light: #8a5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#541a8e",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 270,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37978,
    "c": 0.17453,
    "h": 300.6
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#541A8E
secondary
#82BE45
accent
#EC3C94
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #541A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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