#540F20#540F20

#540F20 is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.8% C 0.100 H 11.7°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#540F20
RGBrgb(84, 15, 32)
HSLhsl(345, 70%, 19%)
HSVhsv(345, 82%, 33%)
CMYKcmyk(0%, 82.1%, 61.9%, 67.1%)
CIE-LABlab(17.14, 32.35, 8.14)
CIE-LCHlch(17.14, 33.36, 14.12°)
OKLaboklab(29.84% 0.0978 0.0203)
OKLCHoklch(29.84% 0.1 11.7)
XYZxyz(4.0881, 2.3313, 1.6009)
Luminance0.0233 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F20 #0F5443
analogous
#540F43 #540F20 #54200F
triadic
#540F20 #20540F #0F2054
tetradic
#540F20 #43540F #0F5443 #200F54
square
#540F20 #43540F #0F5443 #200F54
split-complementary
#540F20 #0F5420 #0F4354
monochromatic
#1A050A #20060C #540F20 #881834 #BC2248

Accessibility & contrast

On white

14.32
#540F20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#540F20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F20
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F20#FFFFFF#000000##FFFFFF
##540F201.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540f20;
/* rgb */ color: rgb(84, 15, 32);
/* oklch */ color: oklch(29.8% 0.100 11.7);
Tailwind
colors: {
  custom: {
    50: '#89555b',
    500: '#540f20',
    950: '#000000',
  },
}
SCSS
$custom: #540f20;
$custom-light: #89555b;
$custom-dark: #000000;
JSON
{
  "hex": "#540f20",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 32
  },
  "hsl": {
    "h": 345.217,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29842,
    "c": 0.09989,
    "h": 11.7
  },
  "luminance": 0.02331
}

Semantic roles & 50–950 ramp

primary
#540F20
secondary
#318E77
accent
#EDC13B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540F20

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

Preview Lab → · Contrast checker → · Palette generator →

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