#541A97#541A97

#541A97 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.184 H 297.9°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#541A97
RGBrgb(84, 26, 151)
HSLhsl(268, 71%, 35%)
HSVhsv(268, 83%, 59%)
CMYKcmyk(44.4%, 82.8%, 0%, 40.8%)
CIE-LABlab(26.33, 50.49, -56.74)
CIE-LCHlch(26.33, 75.95, 311.67°)
OKLaboklab(38.81% 0.0859 -0.1625)
OKLCHoklch(38.81% 0.184 297.9)
XYZxyz(9.6100, 4.8578, 29.7035)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A97 #5D971A
analogous
#1A1F97 #541A97 #931A97
triadic
#541A97 #97541A #1A9754
tetradic
#541A97 #971A1F #5D971A #1A9793
square
#541A97 #971A1F #5D971A #1A9793
split-complementary
#541A97 #97931A #1F971A
monochromatic
#1A082F #371163 #541A97 #7123CB #904BE0

Accessibility & contrast

On white

10.65
#541A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#541A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A97
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A97#FFFFFF#000000##FFFFFF
##541A971.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#423E5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #541a97;
/* rgb */ color: rgb(84, 26, 151);
/* oklch */ color: oklch(38.8% 0.184 297.9);
Tailwind
colors: {
  custom: {
    50: '#8b5fb7',
    500: '#541a97',
    950: '#000000',
  },
}
SCSS
$custom: #541a97;
$custom-light: #8b5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#541a97",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 267.84,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38811,
    "c": 0.18383,
    "h": 297.9
  },
  "luminance": 0.04858
}

Semantic roles & 50–950 ramp

primary
#541A97
secondary
#8BC24B
accent
#ED3A9A
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #541A97

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

Preview Lab → · Contrast checker → · Palette generator →

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