#541A9F#541A9F

#541A9F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.6% C 0.192 H 295.6°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#541A9F
RGBrgb(84, 26, 159)
HSLhsl(266, 72%, 36%)
HSVhsv(266, 84%, 62%)
CMYKcmyk(47.2%, 83.6%, 0%, 37.6%)
CIE-LABlab(27.09, 52.50, -60.37)
CIE-LCHlch(27.09, 80.01, 311.01°)
OKLaboklab(39.57% 0.0831 -0.1732)
OKLCHoklch(39.57% 0.192 295.6)
XYZxyz(10.2819, 5.1265, 33.2420)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541A9F #659F1A
analogous
#1A239F #541A9F #971A9F
triadic
#541A9F #9F541A #1A9F54
tetradic
#541A9F #9F1A23 #659F1A #1A9F97
square
#541A9F #9F1A23 #659F1A #1A9F97
split-complementary
#541A9F #9F971A #239F1A
monochromatic
#1C0936 #38116A #541A9F #7023D4 #9051E3

Accessibility & contrast

On white

10.37
#541A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#541A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541A9F
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541A9F#FFFFFF#000000##FFFFFF
##541A9F1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#3E425E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #541a9f;
/* rgb */ color: rgb(84, 26, 159);
/* oklch */ color: oklch(39.6% 0.192 295.6);
Tailwind
colors: {
  custom: {
    50: '#8c60bd',
    500: '#541a9f',
    950: '#000000',
  },
}
SCSS
$custom: #541a9f;
$custom-light: #8c60bd;
$custom-dark: #000000;
JSON
{
  "hex": "#541a9f",
  "rgb": {
    "r": 84,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 266.165,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39574,
    "c": 0.19209,
    "h": 295.6
  },
  "luminance": 0.05127
}

Semantic roles & 50–950 ramp

primary
#541A9F
secondary
#92C550
accent
#EF399F
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #541A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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