#541C8B#541C8B

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

Color values

HEX#541C8B
RGBrgb(84, 28, 139)
HSLhsl(270, 66%, 33%)
HSVhsv(270, 80%, 55%)
CMYKcmyk(39.6%, 79.9%, 0%, 45.5%)
CIE-LABlab(25.50, 46.71, -50.66)
CIE-LCHlch(25.50, 68.91, 312.68°)
OKLaboklab(37.9% 0.0881 -0.1447)
OKLCHoklch(37.9% 0.169 301.3)
XYZxyz(8.7305, 4.5794, 24.8450)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C8B #538B1C
analogous
#1C1C8B #541C8B #8B1C8B
triadic
#541C8B #8B541C #1C8B54
tetradic
#541C8B #8B1C1C #538B1C #1C8B8B
square
#541C8B #8B1C1C #538B1C #1C8B8B
split-complementary
#541C8B #8B8B1C #1C8B1C
monochromatic
#160725 #351258 #541C8B #7326BE #9147DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##541C8B#FFFFFF#000000##FFFFFF
##541C8B1.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)
#003C8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#483A53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541c8b;
/* rgb */ color: rgb(84, 28, 139);
/* oklch */ color: oklch(37.9% 0.169 301.3);
Tailwind
colors: {
  custom: {
    50: '#8a5fae',
    500: '#541c8b',
    950: '#000000',
  },
}
SCSS
$custom: #541c8b;
$custom-light: #8a5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#541c8b",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 270.27,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37901,
    "c": 0.16943,
    "h": 301.3
  },
  "luminance": 0.04579
}

Semantic roles & 50–950 ramp

primary
#541C8B
secondary
#81BC47
accent
#E93E93
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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