#541B82#541B82

#541B82 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.161 H 304.6°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#541B82
RGBrgb(84, 27, 130)
HSLhsl(273, 66%, 31%)
HSVhsv(273, 79%, 51%)
CMYKcmyk(35.4%, 79.2%, 0%, 49%)
CIE-LABlab(24.58, 44.91, -46.53)
CIE-LCHlch(24.58, 64.67, 313.99°)
OKLaboklab(37.01% 0.0914 -0.1326)
OKLCHoklch(37.01% 0.161 304.6)
XYZxyz(8.0764, 4.2804, 21.5155)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B82 #49821B
analogous
#201B82 #541B82 #821B7C
triadic
#541B82 #82541B #1B8254
tetradic
#541B82 #82201B #49821B #1B7C82
square
#541B82 #82201B #49821B #1B7C82
split-complementary
#541B82 #7C821B #1B8220
monochromatic
#13061D #33104F #541B82 #7526B5 #9440D7

Accessibility & contrast

On white

11.31
#541B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#541B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B82
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B82#FFFFFF#000000##FFFFFF
##541B821.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#4B354E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541b82;
/* rgb */ color: rgb(84, 27, 130);
/* oklch */ color: oklch(37.0% 0.161 304.6);
Tailwind
colors: {
  custom: {
    50: '#895ea7',
    500: '#541b82',
    950: '#000000',
  },
}
SCSS
$custom: #541b82;
$custom-light: #895ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#541b82",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 273.204,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37013,
    "c": 0.16103,
    "h": 304.6
  },
  "luminance": 0.0428
}

Semantic roles & 50–950 ramp

primary
#541B82
secondary
#76B643
accent
#E93F8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541B82

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

Preview Lab → · Contrast checker → · Palette generator →

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