#540F12#540F12

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

Color values

HEX#540F12
RGBrgb(84, 15, 18)
HSLhsl(357, 70%, 19%)
HSVhsv(357, 82%, 33%)
CMYKcmyk(0%, 82.1%, 78.6%, 67.1%)
CIE-LABlab(16.85, 31.41, 17.56)
CIE-LCHlch(16.85, 35.98, 29.21°)
OKLaboklab(29.53% 0.0916 0.0403)
OKLCHoklch(29.53% 0.1 23.8)
XYZxyz(3.9366, 2.2707, 0.8032)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F12 #0F5451
analogous
#540F35 #540F12 #542F0F
triadic
#540F12 #12540F #0F1254
tetradic
#540F12 #35540F #0F5451 #2F0F54
square
#540F12 #35540F #0F5451 #2F0F54
split-complementary
#540F12 #0F542F #0F3554
monochromatic
#1A0506 #200607 #540F12 #88181D #BC2228

Accessibility & contrast

On white

14.44
#540F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F12
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F12#FFFFFF#000000##FFFFFF
##540F121.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242011
Deuteranopia (green-blind)
#352F10
Tritanopia (blue-blind)
#5D0011
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540f12;
/* rgb */ color: rgb(84, 15, 18);
/* oklch */ color: oklch(29.5% 0.100 23.8);
Tailwind
colors: {
  custom: {
    50: '#8a544f',
    500: '#540f12',
    950: '#000000',
  },
}
SCSS
$custom: #540f12;
$custom-light: #8a544f;
$custom-dark: #000000;
JSON
{
  "hex": "#540f12",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 18
  },
  "hsl": {
    "h": 357.391,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29534,
    "c": 0.10005,
    "h": 23.8
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#540F12
secondary
#318E8A
accent
#EDE53B
background
#F9F5F4
surface
#F1E9E7
border
#CBC5C3
text
#0D0302
muted
#7E7878

Preview Lab

Preview with #540F12

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

Preview Lab → · Contrast checker → · Palette generator →

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