#540D24#540D24

#540D24 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.8% C 0.103 H 7.3°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#540D24
RGBrgb(84, 13, 36)
HSLhsl(341, 73%, 19%)
HSVhsv(341, 85%, 33%)
CMYKcmyk(0%, 84.5%, 57.1%, 67.1%)
CIE-LABlab(16.99, 33.42, 5.04)
CIE-LCHlch(16.99, 33.80, 8.58°)
OKLaboklab(29.77% 0.1019 0.013)
OKLCHoklch(29.77% 0.103 7.3)
XYZxyz(4.1189, 2.3006, 1.8959)
Luminance0.0230 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D24 #0D543D
analogous
#540D48 #540D24 #541A0D
triadic
#540D24 #24540D #0D2454
tetradic
#540D24 #48540D #0D543D #1A0D54
square
#540D24 #48540D #0D543D #1A0D54
split-complementary
#540D24 #0D541A #0D4854
monochromatic
#1A040B #1F050D #540D24 #89153B #BE1D51

Accessibility & contrast

On white

14.38
#540D24 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#540D24 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D24
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D24#FFFFFF#000000##FFFFFF
##540D241.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202124
Deuteranopia (green-blind)
#322F22
Tritanopia (blue-blind)
#5C0017
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540d24;
/* rgb */ color: rgb(84, 13, 36);
/* oklch */ color: oklch(29.8% 0.103 7.3);
Tailwind
colors: {
  custom: {
    50: '#89545e',
    500: '#540d24',
    950: '#000000',
  },
}
SCSS
$custom: #540d24;
$custom-light: #89545e;
$custom-dark: #000000;
JSON
{
  "hex": "#540d24",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 36
  },
  "hsl": {
    "h": 340.563,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2977,
    "c": 0.10272,
    "h": 7.3
  },
  "luminance": 0.023
}

Semantic roles & 50–950 ramp

primary
#540D24
secondary
#2E8F6F
accent
#F0B438
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540D24

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

Preview Lab → · Contrast checker → · Palette generator →

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