#541B88#541B88

#541B88 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.167 H 302.5°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#541B88
RGBrgb(84, 27, 136)
HSLhsl(271, 67%, 32%)
HSVhsv(271, 80%, 53%)
CMYKcmyk(38.2%, 80.1%, 0%, 46.7%)
CIE-LABlab(25.09, 46.38, -49.45)
CIE-LCHlch(25.09, 67.80, 313.17°)
OKLaboklab(37.54% 0.0898 -0.1411)
OKLCHoklch(37.54% 0.167 302.5)
XYZxyz(8.4910, 4.4462, 23.6987)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B88 #4F881B
analogous
#1E1B88 #541B88 #881B86
triadic
#541B88 #88541B #1B8854
tetradic
#541B88 #881E1B #4F881B #1B8688
square
#541B88 #881E1B #4F881B #1B8688
split-complementary
#541B88 #86881B #1B881E
monochromatic
#150722 #341155 #541B88 #7425BB #9244DA

Accessibility & contrast

On white

11.12
#541B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#541B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B88
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B88#FFFFFF#000000##FFFFFF
##541B881.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#493851
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541b88;
/* rgb */ color: rgb(84, 27, 136);
/* oklch */ color: oklch(37.5% 0.167 302.5);
Tailwind
colors: {
  custom: {
    50: '#8a5fac',
    500: '#541b88',
    950: '#000000',
  },
}
SCSS
$custom: #541b88;
$custom-light: #8a5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#541b88",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 271.376,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37536,
    "c": 0.1673,
    "h": 302.5
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#541B88
secondary
#7DBB44
accent
#EA3E90
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541B88

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

Preview Lab → · Contrast checker → · Palette generator →

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