#541A9D#541A9D

#541A9D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.190 H 296.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#541A9D
RGBrgb(84, 26, 157)
HSLhsl(267, 72%, 36%)
HSVhsv(267, 83%, 62%)
CMYKcmyk(46.5%, 83.4%, 0%, 38.4%)
CIE-LABlab(26.90, 52.00, -59.47)
CIE-LCHlch(26.90, 79.00, 311.16°)
OKLaboklab(39.38% 0.0839 -0.1705)
OKLCHoklch(39.38% 0.19 296.2)
XYZxyz(10.1097, 5.0577, 32.3353)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A9D #639D1A
analogous
#1A219D #541A9D #951A9D
triadic
#541A9D #9D541A #1A9D54
tetradic
#541A9D #9D1A21 #639D1A #1A9D95
square
#541A9D #9D1A21 #639D1A #1A9D95
split-complementary
#541A9D #9D951A #219D1A
monochromatic
#1C0934 #381168 #541A9D #7023D2 #904FE2

Accessibility & contrast

On white

10.44
#541A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#541A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A9D
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A9D#FFFFFF#000000##FFFFFF
##541A9D1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#3F415D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #541a9d;
/* rgb */ color: rgb(84, 26, 157);
/* oklch */ color: oklch(39.4% 0.190 296.2);
Tailwind
colors: {
  custom: {
    50: '#8c5fbb',
    500: '#541a9d',
    950: '#000000',
  },
}
SCSS
$custom: #541a9d;
$custom-light: #8c5fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#541a9d",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 266.565,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39381,
    "c": 0.19003,
    "h": 296.2
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#541A9D
secondary
#90C44E
accent
#EE399E
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #541A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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