#540D20#540D20

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

Color values

HEX#540D20
RGBrgb(84, 13, 32)
HSLhsl(344, 73%, 19%)
HSVhsv(344, 85%, 33%)
CMYKcmyk(0%, 84.5%, 61.9%, 67.1%)
CIE-LABlab(16.88, 33.07, 7.79)
CIE-LCHlch(16.88, 33.98, 13.25°)
OKLaboklab(29.65% 0.1001 0.0195)
OKLCHoklch(29.65% 0.102 11)
XYZxyz(4.0612, 2.2775, 1.5920)
Luminance0.0228 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D20 #0D5441
analogous
#540D44 #540D20 #541E0D
triadic
#540D20 #20540D #0D2054
tetradic
#540D20 #44540D #0D5441 #1E0D54
square
#540D20 #44540D #0D5441 #1E0D54
split-complementary
#540D20 #0D541E #0D4454
monochromatic
#1A040A #1F050C #540D20 #891534 #BE1D48

Accessibility & contrast

On white

14.43
#540D20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D20
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D20#FFFFFF#000000##FFFFFF
##540D201.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202020
Deuteranopia (green-blind)
#332F1E
Tritanopia (blue-blind)
#5D0015
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540d20;
/* rgb */ color: rgb(84, 13, 32);
/* oklch */ color: oklch(29.7% 0.102 11.0);
Tailwind
colors: {
  custom: {
    50: '#89545b',
    500: '#540d20',
    950: '#000000',
  },
}
SCSS
$custom: #540d20;
$custom-light: #89545b;
$custom-dark: #000000;
JSON
{
  "hex": "#540d20",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 32
  },
  "hsl": {
    "h": 343.944,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29652,
    "c": 0.10201,
    "h": 11
  },
  "luminance": 0.02277
}

Semantic roles & 50–950 ramp

primary
#540D20
secondary
#2E8F75
accent
#F0BF38
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540D20

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

Preview Lab → · Contrast checker → · Palette generator →

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