#541B7A#541B7A

#541B7A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.153 H 307.7°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#541B7A
RGBrgb(84, 27, 122)
HSLhsl(276, 64%, 29%)
HSVhsv(276, 78%, 48%)
CMYKcmyk(31.1%, 77.9%, 0%, 52.2%)
CIE-LABlab(23.91, 42.99, -42.54)
CIE-LCHlch(23.91, 60.48, 315.30°)
OKLaboklab(36.34% 0.0933 -0.1208)
OKLCHoklch(36.34% 0.153 307.7)
XYZxyz(7.5602, 4.0739, 18.7967)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B7A #417A1B
analogous
#251B7A #541B7A #7A1B71
triadic
#541B7A #7A541B #1B7A54
tetradic
#541B7A #7A251B #417A1B #1B717A
square
#541B7A #7A251B #417A1B #1B717A
split-complementary
#541B7A #717A1B #1B7A25
monochromatic
#110619 #311048 #541B7A #7726AC #973CD4

Accessibility & contrast

On white

11.57
#541B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541B7A
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B7A#FFFFFF#000000##FFFFFF
##541B7A1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541b7a;
/* rgb */ color: rgb(84, 27, 122);
/* oklch */ color: oklch(36.3% 0.153 307.7);
Tailwind
colors: {
  custom: {
    50: '#885ea1',
    500: '#541b7a',
    950: '#000000',
  },
}
SCSS
$custom: #541b7a;
$custom-light: #885ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#541b7a",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 276,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36339,
    "c": 0.15267,
    "h": 307.7
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#541B7A
secondary
#6EAE43
accent
#E74183
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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