#540D2B#540D2B

#540D2B is a dark, moderate pink. Relative luminance 0.023; OKLCH L 30.0% C 0.105 H 0.6°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#540D2B
RGBrgb(84, 13, 43)
HSLhsl(335, 73%, 19%)
HSVhsv(335, 85%, 33%)
CMYKcmyk(0%, 84.5%, 48.8%, 67.1%)
CIE-LABlab(17.22, 34.11, 0.31)
CIE-LCHlch(17.22, 34.11, 0.52°)
OKLaboklab(30.01% 0.1048 0.0012)
OKLCHoklch(30.01% 0.105 0.6)
XYZxyz(4.2365, 2.3477, 2.5151)
Luminance0.0235 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D2B #0D5436
analogous
#540D4F #540D2B #54130D
triadic
#540D2B #2B540D #0D2B54
tetradic
#540D2B #4F540D #0D5436 #130D54
square
#540D2B #4F540D #0D5436 #130D54
split-complementary
#540D2B #0D5413 #0D4F54
monochromatic
#1A040E #1F0510 #540D2B #891546 #BE1D61

Accessibility & contrast

On white

14.29
#540D2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#540D2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D2B
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D2B#FFFFFF#000000##FFFFFF
##540D2B1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E222C
Deuteranopia (green-blind)
#312F29
Tritanopia (blue-blind)
#5C011A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540d2b;
/* rgb */ color: rgb(84, 13, 43);
/* oklch */ color: oklch(30.0% 0.105 0.6);
Tailwind
colors: {
  custom: {
    50: '#885464',
    500: '#540d2b',
    950: '#000000',
  },
}
SCSS
$custom: #540d2b;
$custom-light: #885464;
$custom-dark: #000000;
JSON
{
  "hex": "#540d2b",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 43
  },
  "hsl": {
    "h": 334.648,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30007,
    "c": 0.10478,
    "h": 0.6
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#540D2B
secondary
#2E8F66
accent
#F0A238
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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