#540E53#540E53

#540E53 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.130 H 328.7°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#540E53
RGBrgb(84, 14, 83)
HSLhsl(301, 71%, 19%)
HSVhsv(301, 83%, 33%)
CMYKcmyk(0%, 83.3%, 1.2%, 67.1%)
CIE-LABlab(19.32, 39.65, -24.39)
CIE-LCHlch(19.32, 46.55, 328.41°)
OKLaboklab(32.18% 0.1112 -0.0675)
OKLCHoklch(32.18% 0.13 328.7)
XYZxyz(5.3745, 2.8238, 8.4439)
Luminance0.0282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E53 #0E540F
analogous
#320E54 #540E53 #540E30
triadic
#540E53 #53540E #0E5354
tetradic
#540E53 #54320E #0E540F #0E3054
square
#540E53 #54320E #0E540F #0E3054
split-complementary
#540E53 #30540E #0E5432
monochromatic
#1A041A #20051F #540E53 #881787 #BD1FBB

Accessibility & contrast

On white

13.42
#540E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540E53
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E53#FFFFFF#000000##FFFFFF
##540E531.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012955
Deuteranopia (green-blind)
#233251
Tritanopia (blue-blind)
#571930
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540e53;
/* rgb */ color: rgb(84, 14, 83);
/* oklch */ color: oklch(32.2% 0.130 328.7);
Tailwind
colors: {
  custom: {
    50: '#875684',
    500: '#540e53',
    950: '#000000',
  },
}
SCSS
$custom: #540e53;
$custom-light: #875684;
$custom-dark: #000000;
JSON
{
  "hex": "#540e53",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 83
  },
  "hsl": {
    "h": 300.857,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.32179,
    "c": 0.13013,
    "h": 328.7
  },
  "luminance": 0.02823
}

Semantic roles & 50–950 ramp

primary
#540E53
secondary
#2F8E31
accent
#EE3C3A
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C030B
muted
#7D787C

Preview Lab

Preview with #540E53

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

Preview Lab → · Contrast checker → · Palette generator →

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