#541F8A#541F8A

#541F8A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.165 H 301.3°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#541F8A
RGBrgb(84, 31, 138)
HSLhsl(270, 63%, 33%)
HSVhsv(270, 78%, 54%)
CMYKcmyk(39.1%, 77.5%, 0%, 45.9%)
CIE-LABlab(25.86, 45.18, -49.45)
CIE-LCHlch(25.86, 66.98, 312.42°)
OKLaboklab(38.13% 0.0857 -0.1412)
OKLCHoklch(38.13% 0.165 301.3)
XYZxyz(8.7325, 4.6997, 24.4869)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F8A #558A1F
analogous
#1F1F8A #541F8A #891F8A
triadic
#541F8A #8A541F #1F8A54
tetradic
#541F8A #8A1F1F #558A1F #1F8A89
square
#541F8A #8A1F1F #558A1F #1F8A89
split-complementary
#541F8A #8A891F #1F8A1F
monochromatic
#170926 #361458 #541F8A #722ABC #914CD7

Accessibility & contrast

On white

10.82
#541F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#541F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F8A
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F8A#FFFFFF#000000##FFFFFF
##541F8A1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#483B53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541f8a;
/* rgb */ color: rgb(84, 31, 138);
/* oklch */ color: oklch(38.1% 0.165 301.3);
Tailwind
colors: {
  custom: {
    50: '#8a61ad',
    500: '#541f8a',
    950: '#000000',
  },
}
SCSS
$custom: #541f8a;
$custom-light: #8a61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#541f8a",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 269.72,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38127,
    "c": 0.16516,
    "h": 301.3
  },
  "luminance": 0.047
}

Semantic roles & 50–950 ramp

primary
#541F8A
secondary
#83BA4B
accent
#E64195
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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