#541B7F#541B7F

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

Color values

HEX#541B7F
RGBrgb(84, 27, 127)
HSLhsl(274, 65%, 30%)
HSVhsv(274, 79%, 50%)
CMYKcmyk(33.9%, 78.7%, 0%, 50.2%)
CIE-LABlab(24.33, 44.19, -45.05)
CIE-LCHlch(24.33, 63.10, 314.45°)
OKLaboklab(36.76% 0.0922 -0.1282)
OKLCHoklch(36.76% 0.158 305.7)
XYZxyz(7.8780, 4.2011, 20.4704)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B7F #467F1B
analogous
#221B7F #541B7F #7F1B78
triadic
#541B7F #7F541B #1B7F54
tetradic
#541B7F #7F221B #467F1B #1B787F
square
#541B7F #7F221B #467F1B #1B787F
split-complementary
#541B7F #787F1B #1B7F22
monochromatic
#11061A #33104D #541B7F #7526B1 #953ED6

Accessibility & contrast

On white

11.41
#541B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#541B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B7F
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B7F#FFFFFF#000000##FFFFFF
##541B7F1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#4C344C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541b7f;
/* rgb */ color: rgb(84, 27, 127);
/* oklch */ color: oklch(36.8% 0.158 305.7);
Tailwind
colors: {
  custom: {
    50: '#895ea5',
    500: '#541b7f',
    950: '#000000',
  },
}
SCSS
$custom: #541b7f;
$custom-light: #895ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#541b7f",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 274.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36757,
    "c": 0.15789,
    "h": 305.7
  },
  "luminance": 0.04201
}

Semantic roles & 50–950 ramp

primary
#541B7F
secondary
#73B343
accent
#E84088
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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