#541C8E#541C8E

#541C8E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.173 H 300.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#541C8E
RGBrgb(84, 28, 142)
HSLhsl(269, 67%, 33%)
HSVhsv(269, 80%, 56%)
CMYKcmyk(40.8%, 80.3%, 0%, 44.3%)
CIE-LABlab(25.77, 47.46, -52.09)
CIE-LCHlch(25.77, 70.47, 312.34°)
OKLaboklab(38.17% 0.0873 -0.1489)
OKLCHoklch(38.17% 0.173 300.4)
XYZxyz(8.9527, 4.6682, 26.0153)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541C8E #568E1C
analogous
#1C1D8E #541C8E #8D1C8E
triadic
#541C8E #8E541C #1C8E54
tetradic
#541C8E #8E1C1D #568E1C #1C8E8D
square
#541C8E #8E1C1D #568E1C #1C8E8D
split-complementary
#541C8E #8E8D1C #1D8E1C
monochromatic
#180828 #36125B #541C8E #7226C1 #9149DB

Accessibility & contrast

On white

10.86
#541C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541C8E
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541C8E#FFFFFF#000000##FFFFFF
##541C8E1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#463B55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541c8e;
/* rgb */ color: rgb(84, 28, 142);
/* oklch */ color: oklch(38.2% 0.173 300.4);
Tailwind
colors: {
  custom: {
    50: '#8a5fb0',
    500: '#541c8e',
    950: '#000000',
  },
}
SCSS
$custom: #541c8e;
$custom-light: #8a5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#541c8e",
  "rgb": {
    "r": 84,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 269.474,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3817,
    "c": 0.17258,
    "h": 300.4
  },
  "luminance": 0.04668
}

Semantic roles & 50–950 ramp

primary
#541C8E
secondary
#84BD49
accent
#EA3E95
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #541C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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