#541B89#541B89

#541B89 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.168 H 302.1°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#541B89
RGBrgb(84, 27, 137)
HSLhsl(271, 67%, 32%)
HSVhsv(271, 80%, 54%)
CMYKcmyk(38.7%, 80.3%, 0%, 46.3%)
CIE-LABlab(25.18, 46.63, -49.93)
CIE-LCHlch(25.18, 68.32, 313.04°)
OKLaboklab(37.63% 0.0895 -0.1426)
OKLCHoklch(37.63% 0.168 302.1)
XYZxyz(8.5624, 4.4748, 24.0747)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B89 #50891B
analogous
#1D1B89 #541B89 #891B87
triadic
#541B89 #89541B #1B8954
tetradic
#541B89 #891D1B #50891B #1B8789
square
#541B89 #891D1B #50891B #1B8789
split-complementary
#541B89 #87891B #1B891D
monochromatic
#150723 #351156 #541B89 #7325BC #9244DA

Accessibility & contrast

On white

11.08
#541B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#541B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B89
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B89#FFFFFF#000000##FFFFFF
##541B891.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003B87
Tritanopia (blue-blind)
#493852
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541b89;
/* rgb */ color: rgb(84, 27, 137);
/* oklch */ color: oklch(37.6% 0.168 302.1);
Tailwind
colors: {
  custom: {
    50: '#8a5fac',
    500: '#541b89',
    950: '#000000',
  },
}
SCSS
$custom: #541b89;
$custom-light: #8a5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#541b89",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 271.091,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37625,
    "c": 0.16835,
    "h": 302.1
  },
  "luminance": 0.04475
}

Semantic roles & 50–950 ramp

primary
#541B89
secondary
#7EBC44
accent
#EA3E91
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541B89

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

Preview Lab → · Contrast checker → · Palette generator →

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