#541EA8#541EA8

#541EA8 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.8% C 0.198 H 293.0°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#541EA8
RGBrgb(84, 30, 168)
HSLhsl(263, 70%, 39%)
HSVhsv(263, 82%, 66%)
CMYKcmyk(50%, 82.1%, 0%, 34.1%)
CIE-LABlab(28.49, 53.28, -63.54)
CIE-LCHlch(28.49, 82.92, 309.98°)
OKLaboklab(40.8% 0.0773 -0.1825)
OKLCHoklch(40.8% 0.198 293)
XYZxyz(11.1863, 5.6401, 37.5374)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541EA8 #72A81E
analogous
#1E2DA8 #541EA8 #991EA8
triadic
#541EA8 #A8541E #1EA854
tetradic
#541EA8 #A81E2D #72A81E #1EA899
square
#541EA8 #A81E2D #72A81E #1EA899
split-complementary
#541EA8 #A8991E #2DA81E
monochromatic
#200B40 #3A1574 #541EA8 #6F2AD9 #925EE2

Accessibility & contrast

On white

9.87
#541EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#541EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541EA8
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541EA8#FFFFFF#000000##FFFFFF
##541EA81.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0041A6
Tritanopia (blue-blind)
#394764
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #541ea8;
/* rgb */ color: rgb(84, 30, 168);
/* oklch */ color: oklch(40.8% 0.198 293.0);
Tailwind
colors: {
  custom: {
    50: '#8d62c3',
    500: '#541ea8',
    950: '#000000',
  },
}
SCSS
$custom: #541ea8;
$custom-light: #8d62c3;
$custom-dark: #000000;
JSON
{
  "hex": "#541ea8",
  "rgb": {
    "r": 84,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 263.478,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40801,
    "c": 0.19818,
    "h": 293
  },
  "luminance": 0.05641
}

Semantic roles & 50–950 ramp

primary
#541EA8
secondary
#9DC75B
accent
#ED3BA7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #541EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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