#541C8D#541C8D

#541C8D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.172 H 300.7°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#541C8D
RGBrgb(84, 28, 141)
HSLhsl(270, 67%, 33%)
HSVhsv(270, 80%, 55%)
CMYKcmyk(40.4%, 80.1%, 0%, 44.7%)
CIE-LABlab(25.68, 47.21, -51.62)
CIE-LCHlch(25.68, 69.95, 312.45°)
OKLaboklab(38.08% 0.0876 -0.1475)
OKLCHoklch(38.08% 0.172 300.7)
XYZxyz(8.8779, 4.6383, 25.6217)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C8D #558D1C
analogous
#1C1C8D #541C8D #8C1C8D
triadic
#541C8D #8D541C #1C8D54
tetradic
#541C8D #8D1C1C #558D1C #1C8D8C
square
#541C8D #8D1C1C #558D1C #1C8D8C
split-complementary
#541C8D #8D8C1C #1C8D1C
monochromatic
#170827 #36125A #541C8D #7226C0 #9149DB

Accessibility & contrast

On white

10.89
#541C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#541C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541C8D
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541C8D#FFFFFF#000000##FFFFFF
##541C8D1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#473B54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541c8d;
/* rgb */ color: rgb(84, 28, 141);
/* oklch */ color: oklch(38.1% 0.172 300.7);
Tailwind
colors: {
  custom: {
    50: '#8a5faf',
    500: '#541c8d',
    950: '#000000',
  },
}
SCSS
$custom: #541c8d;
$custom-light: #8a5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#541c8d",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 269.735,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3808,
    "c": 0.17153,
    "h": 300.7
  },
  "luminance": 0.04638
}

Semantic roles & 50–950 ramp

primary
#541C8D
secondary
#83BD48
accent
#EA3E95
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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