#540E12#540E12

#540E12 is a dark, moderate red. Relative luminance 0.022; OKLCH L 29.4% C 0.101 H 23.3°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#540E12
RGBrgb(84, 14, 18)
HSLhsl(357, 71%, 19%)
HSVhsv(357, 83%, 33%)
CMYKcmyk(0%, 83.3%, 78.6%, 67.1%)
CIE-LABlab(16.71, 31.78, 17.40)
CIE-LCHlch(16.71, 36.23, 28.70°)
OKLaboklab(29.43% 0.0928 0.04)
OKLCHoklch(29.43% 0.101 23.3)
XYZxyz(3.9228, 2.2432, 0.7986)
Luminance0.0224 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E12 #0E5450
analogous
#540E35 #540E12 #542D0E
triadic
#540E12 #12540E #0E1254
tetradic
#540E12 #35540E #0E5450 #2D0E54
square
#540E12 #35540E #0E5450 #2D0E54
split-complementary
#540E12 #0E542D #0E3554
monochromatic
#1A0406 #200507 #540E12 #88171D #BD1F28

Accessibility & contrast

On white

14.50
#540E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540E12
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E12#FFFFFF#000000##FFFFFF
##540E121.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232011
Deuteranopia (green-blind)
#342F10
Tritanopia (blue-blind)
#5D0010
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #540e12;
/* rgb */ color: rgb(84, 14, 18);
/* oklch */ color: oklch(29.4% 0.101 23.3);
Tailwind
colors: {
  custom: {
    50: '#8a544f',
    500: '#540e12',
    950: '#000000',
  },
}
SCSS
$custom: #540e12;
$custom-light: #8a544f;
$custom-dark: #000000;
JSON
{
  "hex": "#540e12",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 18
  },
  "hsl": {
    "h": 356.571,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29434,
    "c": 0.10101,
    "h": 23.3
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#540E12
secondary
#2F8E89
accent
#EEE43A
background
#F9F5F4
surface
#F1E9E7
border
#CBC5C3
text
#0D0302
muted
#7E7878

Preview Lab

Preview with #540E12

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

Preview Lab → · Contrast checker → · Palette generator →

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