#540F13#540F13

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

Color values

HEX#540F13
RGBrgb(84, 15, 19)
HSLhsl(357, 70%, 19%)
HSVhsv(357, 82%, 33%)
CMYKcmyk(0%, 82.1%, 77.4%, 67.1%)
CIE-LABlab(16.86, 31.46, 16.96)
CIE-LCHlch(16.86, 35.74, 28.33°)
OKLaboklab(29.55% 0.092 0.0391)
OKLCHoklch(29.55% 0.1 23)
XYZxyz(3.9450, 2.2741, 0.8472)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F13 #0F5450
analogous
#540F36 #540F13 #542E0F
triadic
#540F13 #13540F #0F1354
tetradic
#540F13 #36540F #0F5450 #2E0F54
square
#540F13 #36540F #0F5450 #2E0F54
split-complementary
#540F13 #0F542E #0F3654
monochromatic
#1A0506 #200607 #540F13 #88181F #BC222A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##540F13#FFFFFF#000000##FFFFFF
##540F131.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)
#232012
Deuteranopia (green-blind)
#352F11
Tritanopia (blue-blind)
#5D0011
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540f13;
/* rgb */ color: rgb(84, 15, 19);
/* oklch */ color: oklch(29.6% 0.100 23.0);
Tailwind
colors: {
  custom: {
    50: '#8a5450',
    500: '#540f13',
    950: '#000000',
  },
}
SCSS
$custom: #540f13;
$custom-light: #8a5450;
$custom-dark: #000000;
JSON
{
  "hex": "#540f13",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 19
  },
  "hsl": {
    "h": 356.522,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29551,
    "c": 0.09994,
    "h": 23
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#540F13
secondary
#318E89
accent
#EDE23B
background
#F9F5F4
surface
#F1E9E7
border
#CBC5C3
text
#0D0302
muted
#7E7878

Preview Lab

Preview with #540F13

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

Preview Lab → · Contrast checker → · Palette generator →

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