#541A8F#541A8F

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

Color values

HEX#541A8F
RGBrgb(84, 26, 143)
HSLhsl(270, 69%, 33%)
HSVhsv(270, 82%, 56%)
CMYKcmyk(41.3%, 81.8%, 0%, 43.9%)
CIE-LABlab(25.58, 48.51, -53.01)
CIE-LCHlch(25.58, 71.86, 312.46°)
OKLaboklab(38.07% 0.0886 -0.1516)
OKLCHoklch(38.07% 0.176 300.3)
XYZxyz(8.9822, 4.6067, 26.3972)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A8F #558F1A
analogous
#1A1A8F #541A8F #8E1A8F
triadic
#541A8F #8F541A #1A8F54
tetradic
#541A8F #8F1A1A #558F1A #1A8F8E
square
#541A8F #8F1A1A #558F1A #1A8F8E
split-complementary
#541A8F #8F8E1A #1A8F1A
monochromatic
#170727 #36115B #541A8F #7223C3 #9146DD

Accessibility & contrast

On white

10.93
#541A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#541A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A8F
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A8F#FFFFFF#000000##FFFFFF
##541A8F1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541a8f;
/* rgb */ color: rgb(84, 26, 143);
/* oklch */ color: oklch(38.1% 0.176 300.3);
Tailwind
colors: {
  custom: {
    50: '#8a5fb1',
    500: '#541a8f',
    950: '#000000',
  },
}
SCSS
$custom: #541a8f;
$custom-light: #8a5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#541a8f",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 269.744,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38069,
    "c": 0.17556,
    "h": 300.3
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#541A8F
secondary
#83BF46
accent
#EC3C95
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #541A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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