#541D8E#541D8E

#541D8E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.172 H 300.2°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#541D8E
RGBrgb(84, 29, 142)
HSLhsl(269, 66%, 34%)
HSVhsv(269, 80%, 56%)
CMYKcmyk(40.8%, 79.6%, 0%, 44.3%)
CIE-LABlab(25.91, 47.05, -51.86)
CIE-LCHlch(25.91, 70.02, 312.22°)
OKLaboklab(38.27% 0.0864 -0.1482)
OKLCHoklch(38.27% 0.172 300.2)
XYZxyz(8.9768, 4.7165, 26.0234)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541D8E #578E1D
analogous
#1D1E8E #541D8E #8C1D8E
triadic
#541D8E #8E541D #1D8E54
tetradic
#541D8E #8E1D1E #578E1D #1D8E8C
square
#541D8E #8E1D1E #578E1D #1D8E8C
split-complementary
#541D8E #8E8C1D #1E8E1D
monochromatic
#180828 #36135B #541D8E #7227C1 #914BDA

Accessibility & contrast

On white

10.81
#541D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541D8E
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541D8E#FFFFFF#000000##FFFFFF
##541D8E1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#463B55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541d8e;
/* rgb */ color: rgb(84, 29, 142);
/* oklch */ color: oklch(38.3% 0.172 300.2);
Tailwind
colors: {
  custom: {
    50: '#8a60b0',
    500: '#541d8e',
    950: '#000000',
  },
}
SCSS
$custom: #541d8e;
$custom-light: #8a60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#541d8e",
  "rgb": {
    "r": 84,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 269.204,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3827,
    "c": 0.17157,
    "h": 300.2
  },
  "luminance": 0.04717
}

Semantic roles & 50–950 ramp

primary
#541D8E
secondary
#85BD4A
accent
#E93F96
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #541D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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