#541A8B#541A8B

#541A8B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.171 H 301.6°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#541A8B
RGBrgb(84, 26, 139)
HSLhsl(271, 68%, 32%)
HSVhsv(271, 81%, 55%)
CMYKcmyk(39.6%, 81.3%, 0%, 45.5%)
CIE-LABlab(25.22, 47.52, -51.12)
CIE-LCHlch(25.22, 69.79, 312.91°)
OKLaboklab(37.71% 0.0898 -0.146)
OKLCHoklch(37.71% 0.171 301.6)
XYZxyz(8.6846, 4.4876, 24.8298)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A8B #518B1A
analogous
#1B1A8B #541A8B #8B1A8A
triadic
#541A8B #8B541A #1A8B54
tetradic
#541A8B #8B1B1A #518B1A #1A8A8B
square
#541A8B #8B1B1A #518B1A #1A8A8B
split-complementary
#541A8B #8A8B1A #1A8B1B
monochromatic
#160724 #351057 #541A8B #7324BF #9243DC

Accessibility & contrast

On white

11.07
#541A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#541A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A8B
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A8B#FFFFFF#000000##FFFFFF
##541A8B1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#483953
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541a8b;
/* rgb */ color: rgb(84, 26, 139);
/* oklch */ color: oklch(37.7% 0.171 301.6);
Tailwind
colors: {
  custom: {
    50: '#8a5eae',
    500: '#541a8b',
    950: '#000000',
  },
}
SCSS
$custom: #541a8b;
$custom-light: #8a5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#541a8b",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 270.796,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37707,
    "c": 0.17142,
    "h": 301.6
  },
  "luminance": 0.04488
}

Semantic roles & 50–950 ramp

primary
#541A8B
secondary
#7FBD44
accent
#EB3C92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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