#541B87#541B87

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

Color values

HEX#541B87
RGBrgb(84, 27, 135)
HSLhsl(272, 67%, 32%)
HSVhsv(272, 80%, 53%)
CMYKcmyk(37.8%, 80%, 0%, 47.1%)
CIE-LABlab(25.01, 46.14, -48.97)
CIE-LCHlch(25.01, 67.28, 313.29°)
OKLaboklab(37.45% 0.0901 -0.1397)
OKLCHoklch(37.45% 0.166 302.8)
XYZxyz(8.4202, 4.4179, 23.3261)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B87 #4E871B
analogous
#1E1B87 #541B87 #871B84
triadic
#541B87 #87541B #1B8754
tetradic
#541B87 #871E1B #4E871B #1B8487
square
#541B87 #871E1B #4E871B #1B8487
split-complementary
#541B87 #84871B #1B871E
monochromatic
#150721 #341154 #541B87 #7425BA #9243D9

Accessibility & contrast

On white

11.15
#541B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541B87
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B87#FFFFFF#000000##FFFFFF
##541B871.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#493851
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541b87;
/* rgb */ color: rgb(84, 27, 135);
/* oklch */ color: oklch(37.4% 0.166 302.8);
Tailwind
colors: {
  custom: {
    50: '#8a5fab',
    500: '#541b87',
    950: '#000000',
  },
}
SCSS
$custom: #541b87;
$custom-light: #8a5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#541b87",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 271.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37448,
    "c": 0.16625,
    "h": 302.8
  },
  "luminance": 0.04418
}

Semantic roles & 50–950 ramp

primary
#541B87
secondary
#7CBA44
accent
#EA3E8F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541B87

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

Preview Lab → · Contrast checker → · Palette generator →

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