#541B80#541B80

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

Color values

HEX#541B80
RGBrgb(84, 27, 128)
HSLhsl(274, 65%, 30%)
HSVhsv(274, 79%, 50%)
CMYKcmyk(34.4%, 78.9%, 0%, 49.8%)
CIE-LABlab(24.41, 44.43, -45.54)
CIE-LCHlch(24.41, 63.62, 314.29°)
OKLaboklab(36.84% 0.0919 -0.1297)
OKLCHoklch(36.84% 0.159 305.3)
XYZxyz(7.9435, 4.2273, 20.8154)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B80 #47801B
analogous
#211B80 #541B80 #801B79
triadic
#541B80 #80541B #1B8054
tetradic
#541B80 #80211B #47801B #1B7980
square
#541B80 #80211B #47801B #1B7980
split-complementary
#541B80 #79801B #1B8021
monochromatic
#12061B #33104D #541B80 #7526B3 #943FD6

Accessibility & contrast

On white

11.38
#541B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#541B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B80
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B80#FFFFFF#000000##FFFFFF
##541B801.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#4C354D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541b80;
/* rgb */ color: rgb(84, 27, 128);
/* oklch */ color: oklch(36.8% 0.159 305.3);
Tailwind
colors: {
  custom: {
    50: '#895ea6',
    500: '#541b80',
    950: '#000000',
  },
}
SCSS
$custom: #541b80;
$custom-light: #895ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#541b80",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 273.861,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36842,
    "c": 0.15894,
    "h": 305.3
  },
  "luminance": 0.04227
}

Semantic roles & 50–950 ramp

primary
#541B80
secondary
#74B443
accent
#E84089
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541B80

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

Preview Lab → · Contrast checker → · Palette generator →

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