#540D1F#540D1F

#540D1F is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.6% C 0.102 H 11.9°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#540D1F
RGBrgb(84, 13, 31)
HSLhsl(345, 73%, 19%)
HSVhsv(345, 85%, 33%)
CMYKcmyk(0%, 84.5%, 63.1%, 67.1%)
CIE-LABlab(16.86, 32.99, 8.47)
CIE-LCHlch(16.86, 34.06, 14.41°)
OKLaboklab(29.63% 0.0997 0.0211)
OKLCHoklch(29.63% 0.102 11.9)
XYZxyz(4.0478, 2.2722, 1.5215)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D1F #0D5442
analogous
#540D43 #540D1F #541F0D
triadic
#540D1F #1F540D #0D1F54
tetradic
#540D1F #43540D #0D5442 #1F0D54
square
#540D1F #43540D #0D5442 #1F0D54
split-complementary
#540D1F #0D541F #0D4354
monochromatic
#1A040A #1F050B #540D1F #891533 #BE1D46

Accessibility & contrast

On white

14.44
#540D1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#540D1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D1F
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D1F#FFFFFF#000000##FFFFFF
##540D1F1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21201F
Deuteranopia (green-blind)
#332F1D
Tritanopia (blue-blind)
#5D0015
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540d1f;
/* rgb */ color: rgb(84, 13, 31);
/* oklch */ color: oklch(29.6% 0.102 11.9);
Tailwind
colors: {
  custom: {
    50: '#89545a',
    500: '#540d1f',
    950: '#000000',
  },
}
SCSS
$custom: #540d1f;
$custom-light: #89545a;
$custom-dark: #000000;
JSON
{
  "hex": "#540d1f",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 31
  },
  "hsl": {
    "h": 344.789,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29625,
    "c": 0.10189,
    "h": 11.9
  },
  "luminance": 0.02272
}

Semantic roles & 50–950 ramp

primary
#540D1F
secondary
#2E8F76
accent
#F0C138
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #540D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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