#541A8D#541A8D

#541A8D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.173 H 300.9°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#541A8D
RGBrgb(84, 26, 141)
HSLhsl(270, 69%, 33%)
HSVhsv(270, 82%, 55%)
CMYKcmyk(40.4%, 81.6%, 0%, 44.7%)
CIE-LABlab(25.40, 48.01, -52.07)
CIE-LCHlch(25.40, 70.83, 312.68°)
OKLaboklab(37.89% 0.0892 -0.1488)
OKLCHoklch(37.89% 0.173 300.9)
XYZxyz(8.8321, 4.5466, 25.6064)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A8D #538D1A
analogous
#1B1A8D #541A8D #8D1A8C
triadic
#541A8D #8D541A #1A8D54
tetradic
#541A8D #8D1B1A #538D1A #1A8C8D
square
#541A8D #8D1B1A #538D1A #1A8C8D
split-complementary
#541A8D #8C8D1A #1A8D1B
monochromatic
#160726 #351059 #541A8D #7324C1 #9145DD

Accessibility & contrast

On white

11.00
#541A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#541A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A8D
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A8D#FFFFFF#000000##FFFFFF
##541A8D1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#473A54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541a8d;
/* rgb */ color: rgb(84, 26, 141);
/* oklch */ color: oklch(37.9% 0.173 300.9);
Tailwind
colors: {
  custom: {
    50: '#8a5eaf',
    500: '#541a8d',
    950: '#000000',
  },
}
SCSS
$custom: #541a8d;
$custom-light: #8a5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#541a8d",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 270.261,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37887,
    "c": 0.17349,
    "h": 300.9
  },
  "luminance": 0.04547
}

Semantic roles & 50–950 ramp

primary
#541A8D
secondary
#81BE45
accent
#EC3C93
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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