#540F0F#540F0F

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

Color values

HEX#540F0F
RGBrgb(84, 15, 15)
HSLhsl(0, 70%, 19%)
HSVhsv(0, 82%, 33%)
CMYKcmyk(0%, 82.1%, 82.1%, 67.1%)
CIE-LABlab(16.80, 31.26, 19.21)
CIE-LCHlch(16.80, 36.69, 31.58°)
OKLaboklab(29.49% 0.0904 0.0439)
OKLCHoklch(29.49% 0.1 25.9)
XYZxyz(3.9137, 2.2616, 0.6823)
Luminance0.0226 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F0F #0F5454
analogous
#540F32 #540F0F #54320F
triadic
#540F0F #0F540F #0F0F54
tetradic
#540F0F #32540F #0F5454 #320F54
square
#540F0F #32540F #0F5454 #320F54
split-complementary
#540F0F #0F5432 #0F3254
monochromatic
#1A0505 #200606 #540F0F #881818 #BC2222

Accessibility & contrast

On white

14.46
#540F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F0F
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F0F#FFFFFF#000000##FFFFFF
##540F0F1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24200E
Deuteranopia (green-blind)
#352F0C
Tritanopia (blue-blind)
#5D0010
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #540f0f;
/* rgb */ color: rgb(84, 15, 15);
/* oklch */ color: oklch(29.5% 0.100 25.9);
Tailwind
colors: {
  custom: {
    50: '#8b544d',
    500: '#540f0f',
    950: '#000000',
  },
}
SCSS
$custom: #540f0f;
$custom-light: #8b544d;
$custom-dark: #000000;
JSON
{
  "hex": "#540f0f",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 15
  },
  "hsl": {
    "h": 0,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29486,
    "c": 0.10044,
    "h": 25.9
  },
  "luminance": 0.02261
}

Semantic roles & 50–950 ramp

primary
#540F0F
secondary
#318E8E
accent
#EDED3B
background
#F9F5F4
surface
#F1E9E7
border
#CBC5C3
text
#0D0301
muted
#7E7877

Preview Lab

Preview with #540F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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