#541F8E#541F8E

#541F8E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.169 H 300.0°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#541F8E
RGBrgb(84, 31, 142)
HSLhsl(269, 64%, 34%)
HSVhsv(269, 78%, 56%)
CMYKcmyk(40.8%, 78.2%, 0%, 44.3%)
CIE-LABlab(26.21, 46.19, -51.37)
CIE-LCHlch(26.21, 69.08, 311.96°)
OKLaboklab(38.48% 0.0847 -0.1468)
OKLCHoklch(38.48% 0.169 300)
XYZxyz(9.0274, 4.8177, 26.0402)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F8E #598E1F
analogous
#1F218E #541F8E #8C1F8E
triadic
#541F8E #8E541F #1F8E54
tetradic
#541F8E #8E1F21 #598E1F #1F8E8C
square
#541F8E #8E1F21 #598E1F #1F8E8C
split-complementary
#541F8E #8E8C1F #218E1F
monochromatic
#19092A #36145C #541F8E #722AC0 #914FD9

Accessibility & contrast

On white

10.69
#541F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541F8E
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F8E#FFFFFF#000000##FFFFFF
##541F8E1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#463C56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #541f8e;
/* rgb */ color: rgb(84, 31, 142);
/* oklch */ color: oklch(38.5% 0.169 300.0);
Tailwind
colors: {
  custom: {
    50: '#8a61b0',
    500: '#541f8e',
    950: '#000000',
  },
}
SCSS
$custom: #541f8e;
$custom-light: #8a61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#541f8e",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 268.649,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38478,
    "c": 0.16948,
    "h": 300
  },
  "luminance": 0.04818
}

Semantic roles & 50–950 ramp

primary
#541F8E
secondary
#87BB4D
accent
#E74198
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #541F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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