#540D26#540D26

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

Color values

HEX#540D26
RGBrgb(84, 13, 38)
HSLhsl(339, 73%, 19%)
HSVhsv(339, 85%, 33%)
CMYKcmyk(0%, 84.5%, 54.8%, 67.1%)
CIE-LABlab(17.05, 33.60, 3.68)
CIE-LCHlch(17.05, 33.81, 6.25°)
OKLaboklab(29.83% 0.1028 0.0097)
OKLCHoklch(29.83% 0.103 5.4)
XYZxyz(4.1503, 2.3132, 2.0613)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D26 #0D543B
analogous
#540D4A #540D26 #54180D
triadic
#540D26 #26540D #0D2654
tetradic
#540D26 #4A540D #0D543B #180D54
square
#540D26 #4A540D #0D543B #180D54
split-complementary
#540D26 #0D5418 #0D4A54
monochromatic
#1A040C #1F050E #540D26 #89153E #BE1D56

Accessibility & contrast

On white

14.36
#540D26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D26
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D26#FFFFFF#000000##FFFFFF
##540D261.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2127
Deuteranopia (green-blind)
#322F24
Tritanopia (blue-blind)
#5C0018
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540d26;
/* rgb */ color: rgb(84, 13, 38);
/* oklch */ color: oklch(29.8% 0.103 5.4);
Tailwind
colors: {
  custom: {
    50: '#895460',
    500: '#540d26',
    950: '#000000',
  },
}
SCSS
$custom: #540d26;
$custom-light: #895460;
$custom-dark: #000000;
JSON
{
  "hex": "#540d26",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 38
  },
  "hsl": {
    "h": 338.873,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29833,
    "c": 0.1032,
    "h": 5.4
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

primary
#540D26
secondary
#2E8F6D
accent
#F0AF38
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540D26

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

Preview Lab → · Contrast checker → · Palette generator →

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