#541C7E#541C7E

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

Color values

HEX#541C7E
RGBrgb(84, 28, 126)
HSLhsl(274, 64%, 30%)
HSVhsv(274, 78%, 49%)
CMYKcmyk(33.3%, 77.8%, 0%, 50.6%)
CIE-LABlab(24.39, 43.52, -44.31)
CIE-LCHlch(24.39, 62.10, 314.49°)
OKLaboklab(36.78% 0.0914 -0.126)
OKLCHoklch(36.78% 0.156 306)
XYZxyz(7.8365, 4.2218, 20.1367)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C7E #467E1C
analogous
#231C7E #541C7E #7E1C77
triadic
#541C7E #7E541C #1C7E54
tetradic
#541C7E #7E231C #467E1C #1C777E
square
#541C7E #7E231C #467E1C #1C777E
split-complementary
#541C7E #777E1C #1C7E23
monochromatic
#11061A #33114C #541C7E #7527B0 #9540D5

Accessibility & contrast

On white

11.39
#541C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541C7E
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541C7E#FFFFFF#000000##FFFFFF
##541C7E1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541c7e;
/* rgb */ color: rgb(84, 28, 126);
/* oklch */ color: oklch(36.8% 0.156 306.0);
Tailwind
colors: {
  custom: {
    50: '#895fa4',
    500: '#541c7e',
    950: '#000000',
  },
}
SCSS
$custom: #541c7e;
$custom-light: #895fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#541c7e",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 274.286,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36778,
    "c": 0.15571,
    "h": 306
  },
  "luminance": 0.04222
}

Semantic roles & 50–950 ramp

primary
#541C7E
secondary
#73B244
accent
#E74188
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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