#541D8F#541D8F

#541D8F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.173 H 299.9°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#541D8F
RGBrgb(84, 29, 143)
HSLhsl(269, 66%, 34%)
HSVhsv(269, 80%, 56%)
CMYKcmyk(41.3%, 79.7%, 0%, 43.9%)
CIE-LABlab(26.00, 47.30, -52.33)
CIE-LCHlch(26.00, 70.54, 312.11°)
OKLaboklab(38.36% 0.0861 -0.1496)
OKLCHoklch(38.36% 0.173 299.9)
XYZxyz(9.0522, 4.7466, 26.4205)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541D8F #588F1D
analogous
#1D1F8F #541D8F #8D1D8F
triadic
#541D8F #8F541D #1D8F54
tetradic
#541D8F #8F1D1F #588F1D #1D8F8D
square
#541D8F #8F1D1F #588F1D #1D8F8D
split-complementary
#541D8F #8F8D1D #1F8F1D
monochromatic
#180829 #36135C #541D8F #7227C2 #914CDB

Accessibility & contrast

On white

10.77
#541D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#541D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541D8F
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541D8F#FFFFFF#000000##FFFFFF
##541D8F1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541d8f;
/* rgb */ color: rgb(84, 29, 143);
/* oklch */ color: oklch(38.4% 0.173 299.9);
Tailwind
colors: {
  custom: {
    50: '#8a60b1',
    500: '#541d8f',
    950: '#000000',
  },
}
SCSS
$custom: #541d8f;
$custom-light: #8a60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#541d8f",
  "rgb": {
    "r": 84,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 268.947,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3836,
    "c": 0.17263,
    "h": 299.9
  },
  "luminance": 0.04747
}

Semantic roles & 50–950 ramp

primary
#541D8F
secondary
#86BD4B
accent
#E93F97
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #541D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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