#540D12#540D12

#540D12 is a dark, moderate red. Relative luminance 0.022; OKLCH L 29.3% C 0.102 H 22.9°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#540D12
RGBrgb(84, 13, 18)
HSLhsl(356, 73%, 19%)
HSVhsv(356, 85%, 33%)
CMYKcmyk(0%, 84.5%, 78.6%, 67.1%)
CIE-LABlab(16.59, 32.14, 17.24)
CIE-LCHlch(16.59, 36.47, 28.21°)
OKLaboklab(29.34% 0.0939 0.0397)
OKLCHoklch(29.34% 0.102 22.9)
XYZxyz(3.9097, 2.2170, 0.7942)
Luminance0.0222 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D12 #0D544F
analogous
#540D36 #540D12 #542C0D
triadic
#540D12 #12540D #0D1254
tetradic
#540D12 #36540D #0D544F #2C0D54
square
#540D12 #36540D #0D544F #2C0D54
split-complementary
#540D12 #0D542C #0D3654
monochromatic
#1A0406 #1F0507 #540D12 #89151D #BE1D29

Accessibility & contrast

On white

14.55
#540D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#540D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D12
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D12#FFFFFF#000000##FFFFFF
##540D121.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231F12
Deuteranopia (green-blind)
#342E10
Tritanopia (blue-blind)
#5D0010
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #540d12;
/* rgb */ color: rgb(84, 13, 18);
/* oklch */ color: oklch(29.3% 0.102 22.9);
Tailwind
colors: {
  custom: {
    50: '#8a534f',
    500: '#540d12',
    950: '#000000',
  },
}
SCSS
$custom: #540d12;
$custom-light: #8a534f;
$custom-dark: #000000;
JSON
{
  "hex": "#540d12",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 18
  },
  "hsl": {
    "h": 355.775,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29339,
    "c": 0.10193,
    "h": 22.9
  },
  "luminance": 0.02216
}

Semantic roles & 50–950 ramp

primary
#540D12
secondary
#2E8F88
accent
#F0E338
background
#F9F5F4
surface
#F1E8E7
border
#CBC4C3
text
#0D0302
muted
#7E7878

Preview Lab

Preview with #540D12

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

Preview Lab → · Contrast checker → · Palette generator →

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