#540D4C#540D4C

#540D4C is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.125 H 333.3°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#540D4C
RGBrgb(84, 13, 76)
HSLhsl(307, 73%, 19%)
HSVhsv(307, 85%, 33%)
CMYKcmyk(0%, 84.5%, 9.5%, 67.1%)
CIE-LABlab(18.78, 38.74, -20.49)
CIE-LCHlch(18.78, 43.82, 332.12°)
OKLaboklab(31.65% 0.1121 -0.0563)
OKLCHoklch(31.65% 0.125 333.3)
XYZxyz(5.1046, 2.6949, 7.0874)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D4C #0D5415
analogous
#390D54 #540D4C #540D29
triadic
#540D4C #4C540D #0D4C54
tetradic
#540D4C #54390D #0D5415 #0D2954
square
#540D4C #54390D #0D5415 #0D2954
split-complementary
#540D4C #29540D #0D5439
monochromatic
#1A0418 #1F051C #540D4C #89157C #BE1DAC

Accessibility & contrast

On white

13.65
#540D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#540D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D4C
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D4C#FFFFFF#000000##FFFFFF
##540D4C1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A274E
Deuteranopia (green-blind)
#26314A
Tritanopia (blue-blind)
#58152C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540d4c;
/* rgb */ color: rgb(84, 13, 76);
/* oklch */ color: oklch(31.6% 0.125 333.3);
Tailwind
colors: {
  custom: {
    50: '#87567e',
    500: '#540d4c',
    950: '#000000',
  },
}
SCSS
$custom: #540d4c;
$custom-light: #87567e;
$custom-dark: #000000;
JSON
{
  "hex": "#540d4c",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 306.761,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31648,
    "c": 0.12541,
    "h": 333.3
  },
  "luminance": 0.02694
}

Semantic roles & 50–950 ramp

primary
#540D4C
secondary
#2E8F39
accent
#F04D38
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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