#541B79#541B79

#541B79 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.152 H 308.1°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#541B79
RGBrgb(84, 27, 121)
HSLhsl(276, 64%, 29%)
HSVhsv(276, 78%, 47%)
CMYKcmyk(30.6%, 77.7%, 0%, 52.5%)
CIE-LABlab(23.83, 42.75, -42.04)
CIE-LCHlch(23.83, 59.96, 315.48°)
OKLaboklab(36.26% 0.0935 -0.1194)
OKLCHoklch(36.26% 0.152 308.1)
XYZxyz(7.4986, 4.0493, 18.4720)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B79 #40791B
analogous
#251B79 #541B79 #791B6F
triadic
#541B79 #79541B #1B7954
tetradic
#541B79 #79251B #40791B #1B6F79
square
#541B79 #79251B #40791B #1B6F79
split-complementary
#541B79 #6F791B #1B7925
monochromatic
#110619 #311047 #541B79 #7726AB #973BD3

Accessibility & contrast

On white

11.60
#541B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#541B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B79
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B79#FFFFFF#000000##FFFFFF
##541B791.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003977
Tritanopia (blue-blind)
#4E3249
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541b79;
/* rgb */ color: rgb(84, 27, 121);
/* oklch */ color: oklch(36.3% 0.152 308.1);
Tailwind
colors: {
  custom: {
    50: '#885ea0',
    500: '#541b79',
    950: '#000000',
  },
}
SCSS
$custom: #541b79;
$custom-light: #885ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#541b79",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 276.383,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36257,
    "c": 0.15163,
    "h": 308.1
  },
  "luminance": 0.04049
}

Semantic roles & 50–950 ramp

primary
#541B79
secondary
#6DAD43
accent
#E74182
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #541B79

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

Preview Lab → · Contrast checker → · Palette generator →

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