#541F86#541F86

#541F86 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.161 H 302.6°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#541F86
RGBrgb(84, 31, 134)
HSLhsl(271, 62%, 32%)
HSVhsv(271, 77%, 53%)
CMYKcmyk(37.3%, 76.9%, 0%, 47.5%)
CIE-LABlab(25.52, 44.17, -47.51)
CIE-LCHlch(25.52, 64.87, 312.92°)
OKLaboklab(37.78% 0.0867 -0.1354)
OKLCHoklch(37.78% 0.161 302.6)
XYZxyz(8.4482, 4.5860, 22.9897)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F86 #51861F
analogous
#211F86 #541F86 #861F84
triadic
#541F86 #86541F #1F8654
tetradic
#541F86 #86211F #51861F #1F8486
square
#541F86 #86211F #51861F #1F8486
split-complementary
#541F86 #84861F #1F8621
monochromatic
#160823 #351454 #541F86 #732AB8 #924AD5

Accessibility & contrast

On white

10.95
#541F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#541F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F86
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F86#FFFFFF#000000##FFFFFF
##541F861.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#4A3951
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541f86;
/* rgb */ color: rgb(84, 31, 134);
/* oklch */ color: oklch(37.8% 0.161 302.6);
Tailwind
colors: {
  custom: {
    50: '#8960aa',
    500: '#541f86',
    950: '#000000',
  },
}
SCSS
$custom: #541f86;
$custom-light: #8960aa;
$custom-dark: #000000;
JSON
{
  "hex": "#541f86",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 270.874,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37782,
    "c": 0.16082,
    "h": 302.6
  },
  "luminance": 0.04586
}

Semantic roles & 50–950 ramp

primary
#541F86
secondary
#7FB849
accent
#E54292
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541F86

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

Preview Lab → · Contrast checker → · Palette generator →

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