#541C82#541C82

#541C82 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.160 H 304.5°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#541C82
RGBrgb(84, 28, 130)
HSLhsl(273, 65%, 31%)
HSVhsv(273, 78%, 51%)
CMYKcmyk(35.4%, 78.5%, 0%, 49%)
CIE-LABlab(24.72, 44.49, -46.29)
CIE-LCHlch(24.72, 64.21, 313.87°)
OKLaboklab(37.12% 0.0905 -0.1319)
OKLCHoklch(37.12% 0.16 304.5)
XYZxyz(8.0998, 4.3271, 21.5233)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C82 #4A821C
analogous
#211C82 #541C82 #821C7D
triadic
#541C82 #82541C #1C8254
tetradic
#541C82 #82211C #4A821C #1C7D82
square
#541C82 #82211C #4A821C #1C7D82
split-complementary
#541C82 #7D821C #1C8221
monochromatic
#13061D #331150 #541C82 #7527B4 #9342D6

Accessibility & contrast

On white

11.26
#541C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#541C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541C82
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541C82#FFFFFF#000000##FFFFFF
##541C821.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#4B364E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541c82;
/* rgb */ color: rgb(84, 28, 130);
/* oklch */ color: oklch(37.1% 0.160 304.5);
Tailwind
colors: {
  custom: {
    50: '#895fa7',
    500: '#541c82',
    950: '#000000',
  },
}
SCSS
$custom: #541c82;
$custom-light: #895fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#541c82",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 272.941,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37116,
    "c": 0.15993,
    "h": 304.5
  },
  "luminance": 0.04327
}

Semantic roles & 50–950 ramp

primary
#541C82
secondary
#77B544
accent
#E8408C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541C82

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

Preview Lab → · Contrast checker → · Palette generator →

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