#540D53#540D53

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

Color values

HEX#540D53
RGBrgb(84, 13, 83)
HSLhsl(301, 73%, 19%)
HSVhsv(301, 85%, 33%)
CMYKcmyk(0%, 84.5%, 1.2%, 67.1%)
CIE-LABlab(19.21, 39.97, -24.56)
CIE-LCHlch(19.21, 46.91, 328.43°)
OKLaboklab(32.1% 0.1121 -0.068)
OKLCHoklch(32.1% 0.131 328.7)
XYZxyz(5.3614, 2.7976, 8.4396)
Luminance0.0280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D53 #0D540E
analogous
#320D54 #540D53 #540D30
triadic
#540D53 #53540D #0D5354
tetradic
#540D53 #54320D #0D540E #0D3054
square
#540D53 #54320D #0D540E #0D3054
split-complementary
#540D53 #30540D #0D5432
monochromatic
#1A041A #1F051F #540D53 #891587 #BE1DBC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##540D53#FFFFFF#000000##FFFFFF
##540D531.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)
#002955
Deuteranopia (green-blind)
#223251
Tritanopia (blue-blind)
#571930
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540d53;
/* rgb */ color: rgb(84, 13, 83);
/* oklch */ color: oklch(32.1% 0.131 328.7);
Tailwind
colors: {
  custom: {
    50: '#875684',
    500: '#540d53',
    950: '#000000',
  },
}
SCSS
$custom: #540d53;
$custom-light: #875684;
$custom-dark: #000000;
JSON
{
  "hex": "#540d53",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 83
  },
  "hsl": {
    "h": 300.845,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.32101,
    "c": 0.13116,
    "h": 328.7
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#540D53
secondary
#2E8F2F
accent
#F03B38
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C030B
muted
#7D787C

Preview Lab

Preview with #540D53

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

Preview Lab → · Contrast checker → · Palette generator →

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