#541E9B#541E9B

#541E9B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.184 H 296.3°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#541E9B
RGBrgb(84, 30, 155)
HSLhsl(266, 68%, 36%)
HSVhsv(266, 81%, 61%)
CMYKcmyk(45.8%, 80.6%, 0%, 39.2%)
CIE-LABlab(27.24, 49.94, -57.69)
CIE-LCHlch(27.24, 76.30, 310.88°)
OKLaboklab(39.56% 0.0817 -0.1653)
OKLCHoklch(39.56% 0.184 296.3)
XYZxyz(10.0352, 5.1797, 31.4750)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541E9B #659B1E
analogous
#1E279B #541E9B #931E9B
triadic
#541E9B #9B541E #1E9B54
tetradic
#541E9B #9B1E27 #659B1E #1E9B93
square
#541E9B #9B1E27 #659B1E #1E9B93
split-complementary
#541E9B #9B931E #279B1E
monochromatic
#1C0A34 #381468 #541E9B #7028CE #9055DE

Accessibility & contrast

On white

10.31
#541E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#541E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541E9B
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541E9B#FFFFFF#000000##FFFFFF
##541E9B1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#40415D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #541e9b;
/* rgb */ color: rgb(84, 30, 155);
/* oklch */ color: oklch(39.6% 0.184 296.3);
Tailwind
colors: {
  custom: {
    50: '#8c61ba',
    500: '#541e9b',
    950: '#000000',
  },
}
SCSS
$custom: #541e9b;
$custom-light: #8c61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#541e9b",
  "rgb": {
    "r": 84,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 265.92,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3956,
    "c": 0.18441,
    "h": 296.3
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#541E9B
secondary
#92C253
accent
#EA3DA0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #541E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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