#541F82#541F82

#541F82 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.156 H 304.0°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#541F82
RGBrgb(84, 31, 130)
HSLhsl(272, 61%, 32%)
HSVhsv(272, 76%, 51%)
CMYKcmyk(35.4%, 76.2%, 0%, 49%)
CIE-LABlab(25.19, 43.17, -45.54)
CIE-LCHlch(25.19, 62.75, 313.47°)
OKLaboklab(37.44% 0.0876 -0.1297)
OKLCHoklch(37.44% 0.156 304)
XYZxyz(8.1745, 4.4765, 21.5482)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F82 #4D821F
analogous
#221F82 #541F82 #821F7F
triadic
#541F82 #82541F #1F8254
tetradic
#541F82 #82221F #4D821F #1F7F82
square
#541F82 #82221F #4D821F #1F7F82
split-complementary
#541F82 #7F821F #1F8222
monochromatic
#14071F #341351 #541F82 #742BB3 #9348D3

Accessibility & contrast

On white

11.08
#541F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#541F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F82
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F82#FFFFFF#000000##FFFFFF
##541F821.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#4B374F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541f82;
/* rgb */ color: rgb(84, 31, 130);
/* oklch */ color: oklch(37.4% 0.156 304.0);
Tailwind
colors: {
  custom: {
    50: '#8960a7',
    500: '#541f82',
    950: '#000000',
  },
}
SCSS
$custom: #541f82;
$custom-light: #8960a7;
$custom-dark: #000000;
JSON
{
  "hex": "#541f82",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 272.121,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37443,
    "c": 0.15649,
    "h": 304
  },
  "luminance": 0.04476
}

Semantic roles & 50–950 ramp

primary
#541F82
secondary
#7BB548
accent
#E5438E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541F82

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

Preview Lab → · Contrast checker → · Palette generator →

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