#541D9E#541D9E

#541D9E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.189 H 295.6°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#541D9E
RGBrgb(84, 29, 158)
HSLhsl(266, 69%, 37%)
HSVhsv(266, 82%, 62%)
CMYKcmyk(46.8%, 81.6%, 0%, 38%)
CIE-LABlab(27.39, 51.11, -59.28)
CIE-LCHlch(27.39, 78.27, 310.76°)
OKLaboklab(39.75% 0.0814 -0.17)
OKLCHoklch(39.75% 0.189 295.6)
XYZxyz(10.2654, 5.2319, 32.8101)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541D9E #679E1D
analogous
#1D279E #541D9E #951D9E
triadic
#541D9E #9E541D #1D9E54
tetradic
#541D9E #9E1D27 #679E1D #1D9E95
square
#541D9E #9E1D27 #679E1D #1D9E95
split-complementary
#541D9E #9E951D #279E1D
monochromatic
#1D0A37 #39146A #541D9E #6F26D2 #9156E0

Accessibility & contrast

On white

10.26
#541D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#541D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541D9E
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541D9E#FFFFFF#000000##FFFFFF
##541D9E1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#3F425E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #541d9e;
/* rgb */ color: rgb(84, 29, 158);
/* oklch */ color: oklch(39.7% 0.189 295.6);
Tailwind
colors: {
  custom: {
    50: '#8c61bc',
    500: '#541d9e',
    950: '#000000',
  },
}
SCSS
$custom: #541d9e;
$custom-light: #8c61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#541d9e",
  "rgb": {
    "r": 84,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 265.581,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39747,
    "c": 0.1885,
    "h": 295.6
  },
  "luminance": 0.05232
}

Semantic roles & 50–950 ramp

primary
#541D9E
secondary
#94C354
accent
#EC3CA1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #541D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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