#540E51#540E51

#540E51 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.128 H 330.0°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#540E51
RGBrgb(84, 14, 81)
HSLhsl(303, 71%, 19%)
HSVhsv(303, 83%, 33%)
CMYKcmyk(0%, 83.3%, 3.6%, 67.1%)
CIE-LABlab(19.20, 39.29, -23.23)
CIE-LCHlch(19.20, 45.65, 329.40°)
OKLaboklab(32.05% 0.1113 -0.0642)
OKLCHoklch(32.05% 0.128 330)
XYZxyz(5.2984, 2.7934, 8.0431)
Luminance0.0279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E51 #0E5411
analogous
#340E54 #540E51 #540E2E
triadic
#540E51 #51540E #0E5154
tetradic
#540E51 #54340E #0E5411 #0E2E54
square
#540E51 #54340E #0E5411 #0E2E54
split-complementary
#540E51 #2E540E #0E5434
monochromatic
#1A0419 #20051E #540E51 #881784 #BD1FB6

Accessibility & contrast

On white

13.47
#540E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#540E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E51
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E51#FFFFFF#000000##FFFFFF
##540E511.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042953
Deuteranopia (green-blind)
#24324F
Tritanopia (blue-blind)
#57182F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540e51;
/* rgb */ color: rgb(84, 14, 81);
/* oklch */ color: oklch(32.0% 0.128 330.0);
Tailwind
colors: {
  custom: {
    50: '#875682',
    500: '#540e51',
    950: '#000000',
  },
}
SCSS
$custom: #540e51;
$custom-light: #875682;
$custom-dark: #000000;
JSON
{
  "hex": "#540e51",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 302.571,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.32047,
    "c": 0.12845,
    "h": 330
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#540E51
secondary
#2F8E34
accent
#EE413A
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540E51

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

Preview Lab → · Contrast checker → · Palette generator →

#540E51 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva