#541F84#541F84

#541F84 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.159 H 303.3°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#541F84
RGBrgb(84, 31, 132)
HSLhsl(271, 62%, 32%)
HSVhsv(271, 77%, 52%)
CMYKcmyk(36.4%, 76.5%, 0%, 48.2%)
CIE-LABlab(25.35, 43.67, -46.52)
CIE-LCHlch(25.35, 63.81, 313.19°)
OKLaboklab(37.61% 0.0872 -0.1326)
OKLCHoklch(37.61% 0.159 303.3)
XYZxyz(8.3100, 4.5307, 22.2620)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F84 #4F841F
analogous
#221F84 #541F84 #841F82
triadic
#541F84 #84541F #1F8454
tetradic
#541F84 #84221F #4F841F #1F8284
square
#541F84 #84221F #4F841F #1F8284
split-complementary
#541F84 #82841F #1F8422
monochromatic
#150821 #341352 #541F84 #742BB6 #9249D4

Accessibility & contrast

On white

11.02
#541F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#541F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F84
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F84#FFFFFF#000000##FFFFFF
##541F841.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#4A3850
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541f84;
/* rgb */ color: rgb(84, 31, 132);
/* oklch */ color: oklch(37.6% 0.159 303.3);
Tailwind
colors: {
  custom: {
    50: '#8960a9',
    500: '#541f84',
    950: '#000000',
  },
}
SCSS
$custom: #541f84;
$custom-light: #8960a9;
$custom-dark: #000000;
JSON
{
  "hex": "#541f84",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 271.485,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37611,
    "c": 0.15866,
    "h": 303.3
  },
  "luminance": 0.04531
}

Semantic roles & 50–950 ramp

primary
#541F84
secondary
#7DB748
accent
#E54390
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541F84

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

Preview Lab → · Contrast checker → · Palette generator →

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