#541B8B#541B8B

#541B8B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.170 H 301.5°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#541B8B
RGBrgb(84, 27, 139)
HSLhsl(271, 67%, 33%)
HSVhsv(271, 81%, 55%)
CMYKcmyk(39.6%, 80.6%, 0%, 45.5%)
CIE-LABlab(25.36, 47.12, -50.89)
CIE-LCHlch(25.36, 69.36, 312.80°)
OKLaboklab(37.8% 0.089 -0.1454)
OKLCHoklch(37.8% 0.17 301.5)
XYZxyz(8.7072, 4.5327, 24.8373)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B8B #528B1B
analogous
#1C1B8B #541B8B #8B1B8A
triadic
#541B8B #8B541B #1B8B54
tetradic
#541B8B #8B1C1B #528B1B #1B8A8B
square
#541B8B #8B1C1B #528B1B #1B8A8B
split-complementary
#541B8B #8A8B1B #1B8B1C
monochromatic
#160725 #351158 #541B8B #7325BE #9245DB

Accessibility & contrast

On white

11.01
#541B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541B8B
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B8B#FFFFFF#000000##FFFFFF
##541B8B1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.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: #541b8b;
/* rgb */ color: rgb(84, 27, 139);
/* oklch */ color: oklch(37.8% 0.170 301.5);
Tailwind
colors: {
  custom: {
    50: '#8a5fae',
    500: '#541b8b',
    950: '#000000',
  },
}
SCSS
$custom: #541b8b;
$custom-light: #8a5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#541b8b",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 270.536,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37803,
    "c": 0.17044,
    "h": 301.5
  },
  "luminance": 0.04533
}

Semantic roles & 50–950 ramp

primary
#541B8B
secondary
#80BC45
accent
#EA3D92
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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