#540D4D#540D4D

#540D4D is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.126 H 332.7°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#540D4D
RGBrgb(84, 13, 77)
HSLhsl(306, 73%, 19%)
HSVhsv(306, 85%, 33%)
CMYKcmyk(0%, 84.5%, 8.3%, 67.1%)
CIE-LABlab(18.84, 38.91, -21.08)
CIE-LCHlch(18.84, 44.25, 331.56°)
OKLaboklab(31.71% 0.1121 -0.058)
OKLCHoklch(31.71% 0.126 332.7)
XYZxyz(5.1397, 2.7089, 7.2719)
Luminance0.0271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D4D #0D5414
analogous
#380D54 #540D4D #540D2A
triadic
#540D4D #4D540D #0D4D54
tetradic
#540D4D #54380D #0D5414 #0D2A54
square
#540D4D #54380D #0D5414 #0D2A54
split-complementary
#540D4D #2A540D #0D5438
monochromatic
#1A0418 #1F051C #540D4D #89157E #BE1DAE

Accessibility & contrast

On white

13.62
#540D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D4D
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D4D#FFFFFF#000000##FFFFFF
##540D4D1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08274F
Deuteranopia (green-blind)
#26314B
Tritanopia (blue-blind)
#58152D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540d4d;
/* rgb */ color: rgb(84, 13, 77);
/* oklch */ color: oklch(31.7% 0.126 332.7);
Tailwind
colors: {
  custom: {
    50: '#87567f',
    500: '#540d4d',
    950: '#000000',
  },
}
SCSS
$custom: #540d4d;
$custom-light: #87567f;
$custom-dark: #000000;
JSON
{
  "hex": "#540d4d",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 77
  },
  "hsl": {
    "h": 305.915,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31711,
    "c": 0.12622,
    "h": 332.7
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#540D4D
secondary
#2E8F38
accent
#F04A38
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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