#540D3A#540D3A

#540D3A is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.6% C 0.112 H 347.1°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#540D3A
RGBrgb(84, 13, 58)
HSLhsl(322, 73%, 19%)
HSVhsv(322, 85%, 33%)
CMYKcmyk(0%, 84.5%, 31%, 67.1%)
CIE-LABlab(17.82, 35.95, -9.48)
CIE-LCHlch(17.82, 37.18, 345.23°)
OKLaboklab(30.65% 0.1095 -0.025)
OKLCHoklch(30.65% 0.112 347.1)
XYZxyz(4.5640, 2.4787, 4.2402)
Luminance0.0248 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D3A #0D5427
analogous
#4B0D54 #540D3A #540D17
triadic
#540D3A #3A540D #0D3A54
tetradic
#540D3A #544B0D #0D5427 #0D1754
square
#540D3A #544B0D #0D5427 #0D1754
split-complementary
#540D3A #17540D #0D544B
monochromatic
#1A0412 #1F0515 #540D3A #89155F #BE1D83

Accessibility & contrast

On white

14.04
#540D3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#540D3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D3A
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D3A#FFFFFF#000000##FFFFFF
##540D3A1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18243B
Deuteranopia (green-blind)
#2D3038
Tritanopia (blue-blind)
#5B0A22
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540d3a;
/* rgb */ color: rgb(84, 13, 58);
/* oklch */ color: oklch(30.6% 0.112 347.1);
Tailwind
colors: {
  custom: {
    50: '#875570',
    500: '#540d3a',
    950: '#000000',
  },
}
SCSS
$custom: #540d3a;
$custom-light: #875570;
$custom-dark: #000000;
JSON
{
  "hex": "#540d3a",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 58
  },
  "hsl": {
    "h": 321.972,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30648,
    "c": 0.11236,
    "h": 347.1
  },
  "luminance": 0.02478
}

Semantic roles & 50–950 ramp

primary
#540D3A
secondary
#2E8F51
accent
#F07B38
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0307
muted
#7D787A

Preview Lab

Preview with #540D3A

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

Preview Lab → · Contrast checker → · Palette generator →

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