#541A82#541A82

#541A82 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.162 H 304.7°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#541A82
RGBrgb(84, 26, 130)
HSLhsl(273, 67%, 31%)
HSVhsv(273, 80%, 51%)
CMYKcmyk(35.4%, 80%, 0%, 49%)
CIE-LABlab(24.43, 45.33, -46.76)
CIE-LCHlch(24.43, 65.12, 314.11°)
OKLaboklab(36.91% 0.0923 -0.1332)
OKLCHoklch(36.91% 0.162 304.7)
XYZxyz(8.0539, 4.2354, 21.5080)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A82 #48821A
analogous
#201A82 #541A82 #821A7C
triadic
#541A82 #82541A #1A8254
tetradic
#541A82 #82201A #48821A #1A7C82
square
#541A82 #82201A #48821A #1A7C82
split-complementary
#541A82 #7C821A #1A8220
monochromatic
#12061C #33104F #541A82 #7524B5 #943ED8

Accessibility & contrast

On white

11.37
#541A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#541A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A82
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A82#FFFFFF#000000##FFFFFF
##541A821.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#4B354E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541a82;
/* rgb */ color: rgb(84, 26, 130);
/* oklch */ color: oklch(36.9% 0.162 304.7);
Tailwind
colors: {
  custom: {
    50: '#895ea7',
    500: '#541a82',
    950: '#000000',
  },
}
SCSS
$custom: #541a82;
$custom-light: #895ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#541a82",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 273.462,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36913,
    "c": 0.1621,
    "h": 304.7
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#541A82
secondary
#75B642
accent
#EA3E8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541A82

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

Preview Lab → · Contrast checker → · Palette generator →

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