#540F0D#540F0D

#540F0D is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.5% C 0.101 H 27.2°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#540F0D
RGBrgb(84, 15, 13)
HSLhsl(2, 73%, 19%)
HSVhsv(2, 85%, 33%)
CMYKcmyk(0%, 82.1%, 84.5%, 67.1%)
CIE-LABlab(16.78, 31.17, 20.19)
CIE-LCHlch(16.78, 37.14, 32.93°)
OKLaboklab(29.46% 0.0896 0.0461)
OKLCHoklch(29.46% 0.101 27.2)
XYZxyz(3.9001, 2.2561, 0.6108)
Luminance0.0226 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F0D #0D5254
analogous
#540D2F #540F0D #54330D
triadic
#540F0D #0D540F #0F0D54
tetradic
#540F0D #2F540D #0D5254 #330D54
square
#540F0D #2F540D #0D5254 #330D54
split-complementary
#540F0D #0D5433 #0D2F54
monochromatic
#1A0504 #1F0605 #540F0D #891815 #BE221D

Accessibility & contrast

On white

14.47
#540F0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F0D
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F0D#FFFFFF#000000##FFFFFF
##540F0D1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24200C
Deuteranopia (green-blind)
#352F0A
Tritanopia (blue-blind)
#5D000F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #540f0d;
/* rgb */ color: rgb(84, 15, 13);
/* oklch */ color: oklch(29.5% 0.101 27.2);
Tailwind
colors: {
  custom: {
    50: '#8b544c',
    500: '#540f0d',
    950: '#000000',
  },
}
SCSS
$custom: #540f0d;
$custom-light: #8b544c;
$custom-dark: #000000;
JSON
{
  "hex": "#540f0d",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 13
  },
  "hsl": {
    "h": 1.69,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29458,
    "c": 0.10074,
    "h": 27.2
  },
  "luminance": 0.02256
}

Semantic roles & 50–950 ramp

primary
#540F0D
secondary
#2E8C8F
accent
#EBF038
background
#F9F5F4
surface
#F1E9E7
border
#CBC5C3
text
#0D0301
muted
#7E7877

Preview Lab

Preview with #540F0D

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

Preview Lab → · Contrast checker → · Palette generator →

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