#541B81#541B81

#541B81 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.160 H 305.0°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#541B81
RGBrgb(84, 27, 129)
HSLhsl(274, 65%, 31%)
HSVhsv(274, 79%, 51%)
CMYKcmyk(34.9%, 79.1%, 0%, 49.4%)
CIE-LABlab(24.49, 44.67, -46.04)
CIE-LCHlch(24.49, 64.15, 314.14°)
OKLaboklab(36.93% 0.0917 -0.1311)
OKLCHoklch(36.93% 0.16 305)
XYZxyz(8.0096, 4.2537, 21.1637)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B81 #48811B
analogous
#211B81 #541B81 #811B7B
triadic
#541B81 #81541B #1B8154
tetradic
#541B81 #81211B #48811B #1B7B81
square
#541B81 #81211B #48811B #1B7B81
split-complementary
#541B81 #7B811B #1B8121
monochromatic
#12061C #33104E #541B81 #7526B4 #943FD7

Accessibility & contrast

On white

11.35
#541B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#541B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B81
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B81#FFFFFF#000000##FFFFFF
##541B811.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#4B354D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541b81;
/* rgb */ color: rgb(84, 27, 129);
/* oklch */ color: oklch(36.9% 0.160 305.0);
Tailwind
colors: {
  custom: {
    50: '#895ea6',
    500: '#541b81',
    950: '#000000',
  },
}
SCSS
$custom: #541b81;
$custom-light: #895ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#541b81",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 273.529,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36927,
    "c": 0.15998,
    "h": 305
  },
  "luminance": 0.04254
}

Semantic roles & 50–950 ramp

primary
#541B81
secondary
#75B543
accent
#E83F8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541B81

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

Preview Lab → · Contrast checker → · Palette generator →

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