#541B8D#541B8D

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

Color values

HEX#541B8D
RGBrgb(84, 27, 141)
HSLhsl(270, 68%, 33%)
HSVhsv(270, 81%, 55%)
CMYKcmyk(40.4%, 80.9%, 0%, 44.7%)
CIE-LABlab(25.54, 47.62, -51.84)
CIE-LCHlch(25.54, 70.39, 312.57°)
OKLaboklab(37.98% 0.0884 -0.1482)
OKLCHoklch(37.98% 0.173 300.8)
XYZxyz(8.8546, 4.5917, 25.6139)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B8D #548D1B
analogous
#1B1B8D #541B8D #8D1B8D
triadic
#541B8D #8D541B #1B8D54
tetradic
#541B8D #8D1B1B #548D1B #1B8D8D
square
#541B8D #8D1B1B #548D1B #1B8D8D
split-complementary
#541B8D #8D8D1B #1B8D1B
monochromatic
#170726 #35115A #541B8D #7325C0 #9147DC

Accessibility & contrast

On white

10.95
#541B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541B8D
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B8D#FFFFFF#000000##FFFFFF
##541B8D1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541b8d;
/* rgb */ color: rgb(84, 27, 141);
/* oklch */ color: oklch(38.0% 0.173 300.8);
Tailwind
colors: {
  custom: {
    50: '#8a5faf',
    500: '#541b8d',
    950: '#000000',
  },
}
SCSS
$custom: #541b8d;
$custom-light: #8a5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#541b8d",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 270,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37982,
    "c": 0.17253,
    "h": 300.8
  },
  "luminance": 0.04592
}

Semantic roles & 50–950 ramp

primary
#541B8D
secondary
#82BD46
accent
#EB3D94
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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