#540F18#540F18

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

Color values

HEX#540F18
RGBrgb(84, 15, 24)
HSLhsl(352, 70%, 19%)
HSVhsv(352, 82%, 33%)
CMYKcmyk(0%, 82.1%, 71.4%, 67.1%)
CIE-LABlab(16.96, 31.76, 13.63)
CIE-LCHlch(16.96, 34.56, 23.23°)
OKLaboklab(29.65% 0.0942 0.0324)
OKLCHoklch(29.65% 0.1 19)
XYZxyz(3.9923, 2.2930, 1.0964)
Luminance0.0229 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F18 #0F544B
analogous
#540F3B #540F18 #54290F
triadic
#540F18 #18540F #0F1854
tetradic
#540F18 #3B540F #0F544B #290F54
square
#540F18 #3B540F #0F544B #290F54
split-complementary
#540F18 #0F5429 #0F3B54
monochromatic
#1A0507 #200609 #540F18 #881827 #BC2236

Accessibility & contrast

On white

14.40
#540F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F18
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F18#FFFFFF#000000##FFFFFF
##540F181.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232018
Deuteranopia (green-blind)
#342F16
Tritanopia (blue-blind)
#5D0013
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540f18;
/* rgb */ color: rgb(84, 15, 24);
/* oklch */ color: oklch(29.6% 0.100 19.0);
Tailwind
colors: {
  custom: {
    50: '#8a5454',
    500: '#540f18',
    950: '#000000',
  },
}
SCSS
$custom: #540f18;
$custom-light: #8a5454;
$custom-dark: #000000;
JSON
{
  "hex": "#540f18",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 24
  },
  "hsl": {
    "h": 352.174,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29647,
    "c": 0.09959,
    "h": 19
  },
  "luminance": 0.02292
}

Semantic roles & 50–950 ramp

primary
#540F18
secondary
#318E82
accent
#EDD53B
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0D0302
muted
#7D7878

Preview Lab

Preview with #540F18

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

Preview Lab → · Contrast checker → · Palette generator →

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