#541B86#541B86

#541B86 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.165 H 303.2°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#541B86
RGBrgb(84, 27, 134)
HSLhsl(272, 66%, 32%)
HSVhsv(272, 80%, 53%)
CMYKcmyk(37.3%, 79.9%, 0%, 47.5%)
CIE-LABlab(24.92, 45.89, -48.48)
CIE-LCHlch(24.92, 66.76, 313.43°)
OKLaboklab(37.36% 0.0904 -0.1383)
OKLCHoklch(37.36% 0.165 303.2)
XYZxyz(8.3501, 4.3899, 22.9571)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B86 #4D861B
analogous
#1F1B86 #541B86 #861B83
triadic
#541B86 #86541B #1B8654
tetradic
#541B86 #861F1B #4D861B #1B8386
square
#541B86 #861F1B #4D861B #1B8386
split-complementary
#541B86 #83861B #1B861F
monochromatic
#140620 #341153 #541B86 #7425B9 #9342D9

Accessibility & contrast

On white

11.18
#541B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#541B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B86
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B86#FFFFFF#000000##FFFFFF
##541B861.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003B84
Tritanopia (blue-blind)
#4A3750
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541b86;
/* rgb */ color: rgb(84, 27, 134);
/* oklch */ color: oklch(37.4% 0.165 303.2);
Tailwind
colors: {
  custom: {
    50: '#895faa',
    500: '#541b86',
    950: '#000000',
  },
}
SCSS
$custom: #541b86;
$custom-light: #895faa;
$custom-dark: #000000;
JSON
{
  "hex": "#541b86",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 271.963,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3736,
    "c": 0.16521,
    "h": 303.2
  },
  "luminance": 0.0439
}

Semantic roles & 50–950 ramp

primary
#541B86
secondary
#7BB944
accent
#E93E8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541B86

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

Preview Lab → · Contrast checker → · Palette generator →

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