#541A88#541A88

#541A88 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.168 H 302.6°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#541A88
RGBrgb(84, 26, 136)
HSLhsl(272, 68%, 32%)
HSVhsv(272, 81%, 53%)
CMYKcmyk(38.2%, 80.9%, 0%, 46.7%)
CIE-LABlab(24.96, 46.78, -49.68)
CIE-LCHlch(24.96, 68.24, 313.28°)
OKLaboklab(37.44% 0.0907 -0.1418)
OKLCHoklch(37.44% 0.168 302.6)
XYZxyz(8.4684, 4.4012, 23.6911)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A88 #4E881A
analogous
#1D1A88 #541A88 #881A85
triadic
#541A88 #88541A #1A8854
tetradic
#541A88 #881D1A #4E881A #1A8588
square
#541A88 #881D1A #4E881A #1A8588
split-complementary
#541A88 #85881A #1A881D
monochromatic
#150621 #341055 #541A88 #7424BB #9242DB

Accessibility & contrast

On white

11.17
#541A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#541A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A88
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A88#FFFFFF#000000##FFFFFF
##541A881.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#493851
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541a88;
/* rgb */ color: rgb(84, 26, 136);
/* oklch */ color: oklch(37.4% 0.168 302.6);
Tailwind
colors: {
  custom: {
    50: '#8a5eac',
    500: '#541a88',
    950: '#000000',
  },
}
SCSS
$custom: #541a88;
$custom-light: #8a5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#541a88",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 271.636,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37439,
    "c": 0.16831,
    "h": 302.6
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#541A88
secondary
#7CBB43
accent
#EB3D8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541A88

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

Preview Lab → · Contrast checker → · Palette generator →

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