#541F80#541F80

#541F80 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.154 H 304.8°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#541F80
RGBrgb(84, 31, 128)
HSLhsl(273, 61%, 31%)
HSVhsv(273, 76%, 50%)
CMYKcmyk(34.4%, 75.8%, 0%, 49.8%)
CIE-LABlab(25.02, 42.67, -44.54)
CIE-LCHlch(25.02, 61.68, 313.77°)
OKLaboklab(37.28% 0.088 -0.1267)
OKLCHoklch(37.28% 0.154 304.8)
XYZxyz(8.0415, 4.4233, 20.8480)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F80 #4B801F
analogous
#241F80 #541F80 #801F7B
triadic
#541F80 #80541F #1F8054
tetradic
#541F80 #80241F #4B801F #1F7B80
square
#541F80 #80241F #4B801F #1F7B80
split-complementary
#541F80 #7B801F #1F8024
monochromatic
#13071D #34134F #541F80 #742BB1 #9347D2

Accessibility & contrast

On white

11.14
#541F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#541F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F80
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F80#FFFFFF#000000##FFFFFF
##541F801.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#4C374E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541f80;
/* rgb */ color: rgb(84, 31, 128);
/* oklch */ color: oklch(37.3% 0.154 304.8);
Tailwind
colors: {
  custom: {
    50: '#8960a6',
    500: '#541f80',
    950: '#000000',
  },
}
SCSS
$custom: #541f80;
$custom-light: #8960a6;
$custom-dark: #000000;
JSON
{
  "hex": "#541f80",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 272.784,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37276,
    "c": 0.15432,
    "h": 304.8
  },
  "luminance": 0.04423
}

Semantic roles & 50–950 ramp

primary
#541F80
secondary
#78B348
accent
#E4448C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541F80

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

Preview Lab → · Contrast checker → · Palette generator →

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