#541A7F#541A7F

#541A7F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.159 H 305.8°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#541A7F
RGBrgb(84, 26, 127)
HSLhsl(274, 66%, 30%)
HSVhsv(274, 80%, 50%)
CMYKcmyk(33.9%, 79.5%, 0%, 50.2%)
CIE-LABlab(24.18, 44.60, -45.28)
CIE-LCHlch(24.18, 63.56, 314.57°)
OKLaboklab(36.66% 0.0931 -0.1289)
OKLCHoklch(36.66% 0.159 305.8)
XYZxyz(7.8555, 4.1560, 20.4629)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A7F #457F1A
analogous
#211A7F #541A7F #7F1A78
triadic
#541A7F #7F541A #1A7F54
tetradic
#541A7F #7F211A #457F1A #1A787F
square
#541A7F #7F211A #457F1A #1A787F
split-complementary
#541A7F #787F1A #1A7F21
monochromatic
#110519 #32104C #541A7F #7624B2 #953CD7

Accessibility & contrast

On white

11.47
#541A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541A7F
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A7F#FFFFFF#000000##FFFFFF
##541A7F1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#4C344C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541a7f;
/* rgb */ color: rgb(84, 26, 127);
/* oklch */ color: oklch(36.7% 0.159 305.8);
Tailwind
colors: {
  custom: {
    50: '#895ea5',
    500: '#541a7f',
    950: '#000000',
  },
}
SCSS
$custom: #541a7f;
$custom-light: #895ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#541a7f",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 274.455,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.36656,
    "c": 0.15899,
    "h": 305.8
  },
  "luminance": 0.04156
}

Semantic roles & 50–950 ramp

primary
#541A7F
secondary
#72B342
accent
#E93F87
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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