#541B84#541B84

#541B84 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.163 H 303.9°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#541B84
RGBrgb(84, 27, 132)
HSLhsl(273, 66%, 31%)
HSVhsv(273, 80%, 52%)
CMYKcmyk(36.4%, 79.5%, 0%, 48.2%)
CIE-LABlab(24.75, 45.40, -47.51)
CIE-LCHlch(24.75, 65.72, 313.70°)
OKLaboklab(37.19% 0.0909 -0.1354)
OKLCHoklch(37.19% 0.163 303.9)
XYZxyz(8.2120, 4.3346, 22.2294)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B84 #4B841B
analogous
#1F1B84 #541B84 #841B7F
triadic
#541B84 #84541B #1B8454
tetradic
#541B84 #841F1B #4B841B #1B7F84
square
#541B84 #841F1B #4B841B #1B7F84
split-complementary
#541B84 #7F841B #1B841F
monochromatic
#13061E #341151 #541B84 #7425B7 #9341D8

Accessibility & contrast

On white

11.25
#541B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#541B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B84
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B84#FFFFFF#000000##FFFFFF
##541B841.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003B82
Tritanopia (blue-blind)
#4A364F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541b84;
/* rgb */ color: rgb(84, 27, 132);
/* oklch */ color: oklch(37.2% 0.163 303.9);
Tailwind
colors: {
  custom: {
    50: '#895ea9',
    500: '#541b84',
    950: '#000000',
  },
}
SCSS
$custom: #541b84;
$custom-light: #895ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#541b84",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 272.571,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37186,
    "c": 0.16312,
    "h": 303.9
  },
  "luminance": 0.04335
}

Semantic roles & 50–950 ramp

primary
#541B84
secondary
#78B743
accent
#E93F8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541B84

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

Preview Lab → · Contrast checker → · Palette generator →

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