#541E88#541E88

#541E88 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.164 H 302.1°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#541E88
RGBrgb(84, 30, 136)
HSLhsl(271, 64%, 33%)
HSVhsv(271, 78%, 53%)
CMYKcmyk(38.2%, 77.9%, 0%, 46.7%)
CIE-LABlab(25.54, 45.12, -48.73)
CIE-LCHlch(25.54, 66.41, 312.79°)
OKLaboklab(37.85% 0.0872 -0.139)
OKLCHoklch(37.85% 0.164 302.1)
XYZxyz(8.5633, 4.5909, 23.7228)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541E88 #52881E
analogous
#1F1E88 #541E88 #881E87
triadic
#541E88 #88541E #1E8854
tetradic
#541E88 #881F1E #52881E #1E8788
square
#541E88 #881F1E #52881E #1E8788
split-complementary
#541E88 #87881E #1E881F
monochromatic
#160824 #351356 #541E88 #7329BA #9249D7

Accessibility & contrast

On white

10.95
#541E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#541E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541E88
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541E88#FFFFFF#000000##FFFFFF
##541E881.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#493952
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541e88;
/* rgb */ color: rgb(84, 30, 136);
/* oklch */ color: oklch(37.8% 0.164 302.1);
Tailwind
colors: {
  custom: {
    50: '#8960ac',
    500: '#541e88',
    950: '#000000',
  },
}
SCSS
$custom: #541e88;
$custom-light: #8960ac;
$custom-dark: #000000;
JSON
{
  "hex": "#541e88",
  "rgb": {
    "r": 84,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 270.566,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37845,
    "c": 0.1641,
    "h": 302.1
  },
  "luminance": 0.04591
}

Semantic roles & 50–950 ramp

primary
#541E88
secondary
#80B949
accent
#E74192
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541E88

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

Preview Lab → · Contrast checker → · Palette generator →

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