#541F89#541F89

#541F89 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.164 H 301.6°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#541F89
RGBrgb(84, 31, 137)
HSLhsl(270, 63%, 33%)
HSVhsv(270, 77%, 54%)
CMYKcmyk(38.7%, 77.4%, 0%, 46.3%)
CIE-LABlab(25.78, 44.93, -48.97)
CIE-LCHlch(25.78, 66.45, 312.54°)
OKLaboklab(38.04% 0.086 -0.1397)
OKLCHoklch(38.04% 0.164 301.6)
XYZxyz(8.6604, 4.6709, 24.1074)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F89 #54891F
analogous
#1F1F89 #541F89 #891F89
triadic
#541F89 #89541F #1F8954
tetradic
#541F89 #891F1F #54891F #1F8989
square
#541F89 #891F1F #54891F #1F8989
split-complementary
#541F89 #89891F #1F891F
monochromatic
#170825 #351457 #541F89 #732ABB #914CD6

Accessibility & contrast

On white

10.86
#541F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#541F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F89
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F89#FFFFFF#000000##FFFFFF
##541F891.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003C87
Tritanopia (blue-blind)
#483A53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541f89;
/* rgb */ color: rgb(84, 31, 137);
/* oklch */ color: oklch(38.0% 0.164 301.6);
Tailwind
colors: {
  custom: {
    50: '#8a61ac',
    500: '#541f89',
    950: '#000000',
  },
}
SCSS
$custom: #541f89;
$custom-light: #8a61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#541f89",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 270,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3804,
    "c": 0.16407,
    "h": 301.6
  },
  "luminance": 0.04671
}

Semantic roles & 50–950 ramp

primary
#541F89
secondary
#82B94B
accent
#E64294
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541F89

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

Preview Lab → · Contrast checker → · Palette generator →

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