#541F8D#541F8D

#541F8D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.168 H 300.3°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#541F8D
RGBrgb(84, 31, 141)
HSLhsl(269, 64%, 34%)
HSVhsv(269, 78%, 55%)
CMYKcmyk(40.4%, 78%, 0%, 44.7%)
CIE-LABlab(26.12, 45.94, -50.89)
CIE-LCHlch(26.12, 68.56, 312.07°)
OKLaboklab(38.39% 0.085 -0.1454)
OKLCHoklch(38.39% 0.168 300.3)
XYZxyz(8.9527, 4.7878, 25.6466)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F8D #588D1F
analogous
#1F218D #541F8D #8B1F8D
triadic
#541F8D #8D541F #1F8D54
tetradic
#541F8D #8D1F21 #588D1F #1F8D8B
square
#541F8D #8D1F21 #588D1F #1F8D8B
split-complementary
#541F8D #8D8B1F #218D1F
monochromatic
#180929 #36145B #541F8D #722ABF #914ED8

Accessibility & contrast

On white

10.73
#541F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#541F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F8D
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F8D#FFFFFF#000000##FFFFFF
##541F8D1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#473C55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #541f8d;
/* rgb */ color: rgb(84, 31, 141);
/* oklch */ color: oklch(38.4% 0.168 300.3);
Tailwind
colors: {
  custom: {
    50: '#8a61af',
    500: '#541f8d',
    950: '#000000',
  },
}
SCSS
$custom: #541f8d;
$custom-light: #8a61af;
$custom-dark: #000000;
JSON
{
  "hex": "#541f8d",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 268.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3839,
    "c": 0.1684,
    "h": 300.3
  },
  "luminance": 0.04788
}

Semantic roles & 50–950 ramp

primary
#541F8D
secondary
#86BB4D
accent
#E74197
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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