#540D29#540D29

#540D29 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.9% C 0.104 H 2.5°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#540D29
RGBrgb(84, 13, 41)
HSLhsl(336, 73%, 19%)
HSVhsv(336, 85%, 33%)
CMYKcmyk(0%, 84.5%, 51.2%, 67.1%)
CIE-LABlab(17.15, 33.90, 1.65)
CIE-LCHlch(17.15, 33.94, 2.79°)
OKLaboklab(29.94% 0.104 0.0046)
OKLCHoklch(29.94% 0.104 2.5)
XYZxyz(4.2007, 2.3333, 2.3266)
Luminance0.0233 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D29 #0D5438
analogous
#540D4D #540D29 #54150D
triadic
#540D29 #29540D #0D2954
tetradic
#540D29 #4D540D #0D5438 #150D54
square
#540D29 #4D540D #0D5438 #150D54
split-complementary
#540D29 #0D5415 #0D4D54
monochromatic
#1A040D #1F050F #540D29 #891543 #BE1D5D

Accessibility & contrast

On white

14.32
#540D29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D29
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D29#FFFFFF#000000##FFFFFF
##540D291.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E212A
Deuteranopia (green-blind)
#312F27
Tritanopia (blue-blind)
#5C0019
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540d29;
/* rgb */ color: rgb(84, 13, 41);
/* oklch */ color: oklch(29.9% 0.104 2.5);
Tailwind
colors: {
  custom: {
    50: '#885462',
    500: '#540d29',
    950: '#000000',
  },
}
SCSS
$custom: #540d29;
$custom-light: #885462;
$custom-dark: #000000;
JSON
{
  "hex": "#540d29",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 41
  },
  "hsl": {
    "h": 336.338,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29935,
    "c": 0.10408,
    "h": 2.5
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#540D29
secondary
#2E8F69
accent
#F0A738
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #540D29

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

Preview Lab → · Contrast checker → · Palette generator →

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