#541F87#541F87

#541F87 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.162 H 302.3°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#541F87
RGBrgb(84, 31, 135)
HSLhsl(271, 63%, 33%)
HSVhsv(271, 77%, 53%)
CMYKcmyk(37.8%, 77%, 0%, 47.1%)
CIE-LABlab(25.61, 44.42, -47.99)
CIE-LCHlch(25.61, 65.40, 312.79°)
OKLaboklab(37.87% 0.0865 -0.1369)
OKLCHoklch(37.87% 0.162 302.3)
XYZxyz(8.5183, 4.6140, 23.3588)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F87 #52871F
analogous
#201F87 #541F87 #871F86
triadic
#541F87 #87541F #1F8754
tetradic
#541F87 #87201F #52871F #1F8687
square
#541F87 #87201F #52871F #1F8687
split-complementary
#541F87 #86871F #1F8720
monochromatic
#160823 #351455 #541F87 #732AB9 #924BD6

Accessibility & contrast

On white

10.92
#541F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#541F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F87
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F87#FFFFFF#000000##FFFFFF
##541F871.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#493952
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541f87;
/* rgb */ color: rgb(84, 31, 135);
/* oklch */ color: oklch(37.9% 0.162 302.3);
Tailwind
colors: {
  custom: {
    50: '#8961ab',
    500: '#541f87',
    950: '#000000',
  },
}
SCSS
$custom: #541f87;
$custom-light: #8961ab;
$custom-dark: #000000;
JSON
{
  "hex": "#541f87",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 270.577,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37867,
    "c": 0.16191,
    "h": 302.3
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#541F87
secondary
#80B84A
accent
#E64292
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541F87

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

Preview Lab → · Contrast checker → · Palette generator →

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