#541F83#541F83

#541F83 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.158 H 303.7°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#541F83
RGBrgb(84, 31, 131)
HSLhsl(272, 62%, 32%)
HSVhsv(272, 76%, 51%)
CMYKcmyk(35.9%, 76.3%, 0%, 48.6%)
CIE-LABlab(25.27, 43.42, -46.03)
CIE-LCHlch(25.27, 63.28, 313.33°)
OKLaboklab(37.53% 0.0874 -0.1311)
OKLCHoklch(37.53% 0.158 303.7)
XYZxyz(8.2419, 4.5035, 21.9034)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F83 #4E831F
analogous
#221F83 #541F83 #831F80
triadic
#541F83 #83541F #1F8354
tetradic
#541F83 #83221F #4E831F #1F8083
square
#541F83 #83221F #4E831F #1F8083
split-complementary
#541F83 #80831F #1F8322
monochromatic
#150820 #341352 #541F83 #742BB4 #9249D4

Accessibility & contrast

On white

11.05
#541F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541F83
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F83#FFFFFF#000000##FFFFFF
##541F831.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B86
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#4B384F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #541f83;
/* rgb */ color: rgb(84, 31, 131);
/* oklch */ color: oklch(37.5% 0.158 303.7);
Tailwind
colors: {
  custom: {
    50: '#8960a8',
    500: '#541f83',
    950: '#000000',
  },
}
SCSS
$custom: #541f83;
$custom-light: #8960a8;
$custom-dark: #000000;
JSON
{
  "hex": "#541f83",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 271.8,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37527,
    "c": 0.15757,
    "h": 303.7
  },
  "luminance": 0.04503
}

Semantic roles & 50–950 ramp

primary
#541F83
secondary
#7CB648
accent
#E5438F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541F83

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

Preview Lab → · Contrast checker → · Palette generator →

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