#541B77#541B77

#541B77 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.150 H 308.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#541B77
RGBrgb(84, 27, 119)
HSLhsl(277, 63%, 29%)
HSVhsv(277, 77%, 47%)
CMYKcmyk(29.4%, 77.3%, 0%, 53.3%)
CIE-LABlab(23.67, 42.27, -41.02)
CIE-LCHlch(23.67, 58.91, 315.86°)
OKLaboklab(36.09% 0.0939 -0.1164)
OKLCHoklch(36.09% 0.15 308.9)
XYZxyz(7.3772, 4.0007, 17.8328)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B77 #3E771B
analogous
#261B77 #541B77 #771B6C
triadic
#541B77 #77541B #1B7754
tetradic
#541B77 #77261B #3E771B #1B6C77
square
#541B77 #77261B #3E771B #1B6C77
split-complementary
#541B77 #6C771B #1B7726
monochromatic
#120619 #311045 #541B77 #7726A9 #983AD2

Accessibility & contrast

On white

11.67
#541B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#541B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B77
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B77#FFFFFF#000000##FFFFFF
##541B771.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#003975
Tritanopia (blue-blind)
#4F3148
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #541b77;
/* rgb */ color: rgb(84, 27, 119);
/* oklch */ color: oklch(36.1% 0.150 308.9);
Tailwind
colors: {
  custom: {
    50: '#885e9f',
    500: '#541b77',
    950: '#000000',
  },
}
SCSS
$custom: #541b77;
$custom-light: #885e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#541b77",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 277.174,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36094,
    "c": 0.14954,
    "h": 308.9
  },
  "luminance": 0.04001
}

Semantic roles & 50–950 ramp

primary
#541B77
secondary
#6AAB42
accent
#E64280
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #541B77

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

Preview Lab → · Contrast checker → · Palette generator →

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