#541A7E#541A7E

#541A7E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.158 H 306.2°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#541A7E
RGBrgb(84, 26, 126)
HSLhsl(275, 66%, 30%)
HSVhsv(275, 79%, 49%)
CMYKcmyk(33.3%, 79.4%, 0%, 50.6%)
CIE-LABlab(24.10, 44.36, -44.79)
CIE-LCHlch(24.10, 63.04, 314.73°)
OKLaboklab(36.57% 0.0933 -0.1274)
OKLCHoklch(36.57% 0.158 306.2)
XYZxyz(7.7906, 4.1300, 20.1214)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A7E #447E1A
analogous
#221A7E #541A7E #7E1A76
triadic
#541A7E #7E541A #1A7E54
tetradic
#541A7E #7E221A #447E1A #1A767E
square
#541A7E #7E221A #447E1A #1A767E
split-complementary
#541A7E #767E1A #1A7E22
monochromatic
#110519 #32104B #541A7E #7624B1 #963CD7

Accessibility & contrast

On white

11.50
#541A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#541A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A7E
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A7E#FFFFFF#000000##FFFFFF
##541A7E1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#4C334B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541a7e;
/* rgb */ color: rgb(84, 26, 126);
/* oklch */ color: oklch(36.6% 0.158 306.2);
Tailwind
colors: {
  custom: {
    50: '#895ea4',
    500: '#541a7e',
    950: '#000000',
  },
}
SCSS
$custom: #541a7e;
$custom-light: #895ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#541a7e",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 274.8,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36571,
    "c": 0.15796,
    "h": 306.2
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

primary
#541A7E
secondary
#71B242
accent
#E93F86
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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