#541F9A#541F9A

#541F9A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.182 H 296.4°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#541F9A
RGBrgb(84, 31, 154)
HSLhsl(266, 66%, 36%)
HSVhsv(266, 80%, 60%)
CMYKcmyk(45.5%, 79.9%, 0%, 39.6%)
CIE-LABlab(27.29, 49.27, -56.99)
CIE-LCHlch(27.29, 75.34, 310.84°)
OKLaboklab(39.57% 0.0812 -0.1633)
OKLCHoklch(39.57% 0.182 296.4)
XYZxyz(9.9773, 5.1977, 31.0432)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F9A #659A1F
analogous
#1F289A #541F9A #921F9A
triadic
#541F9A #9A541F #1F9A54
tetradic
#541F9A #9A1F28 #659A1F #1F9A92
square
#541F9A #9A1F28 #659A1F #1F9A92
split-complementary
#541F9A #9A921F #289A1F
monochromatic
#1C0A34 #381567 #541F9A #7029CD #9056DD

Accessibility & contrast

On white

10.30
#541F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#541F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F9A
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F9A#FFFFFF#000000##FFFFFF
##541F9A1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#41415C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #541f9a;
/* rgb */ color: rgb(84, 31, 154);
/* oklch */ color: oklch(39.6% 0.182 296.4);
Tailwind
colors: {
  custom: {
    50: '#8b62b9',
    500: '#541f9a',
    950: '#000000',
  },
}
SCSS
$custom: #541f9a;
$custom-light: #8b62b9;
$custom-dark: #000000;
JSON
{
  "hex": "#541f9a",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 265.854,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39567,
    "c": 0.18239,
    "h": 296.4
  },
  "luminance": 0.05198
}

Semantic roles & 50–950 ramp

primary
#541F9A
secondary
#92C154
accent
#E93EA0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #541F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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