#54120C#54120C

#54120C is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.8% C 0.098 H 29.4°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#54120C
RGBrgb(84, 18, 12)
HSLhsl(5, 75%, 19%)
HSVhsv(5, 86%, 33%)
CMYKcmyk(0%, 78.6%, 85.7%, 67.1%)
CIE-LABlab(17.20, 29.93, 21.18)
CIE-LCHlch(17.20, 36.66, 35.28°)
OKLaboklab(29.77% 0.0854 0.0481)
OKLCHoklch(29.77% 0.098 29.4)
XYZxyz(3.9393, 2.3446, 0.5929)
Luminance0.0234 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54120C #0C4E54
analogous
#540C2A #54120C #54360C
triadic
#54120C #0C5412 #120C54
tetradic
#54120C #2A540C #0C4E54 #360C54
square
#54120C #2A540C #0C4E54 #360C54
split-complementary
#54120C #0C5436 #0C2A54
monochromatic
#1B0604 #1E0704 #54120C #8A1D14 #BF291B

Accessibility & contrast

On white

14.30
#54120C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#54120C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54120C
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54120C#FFFFFF#000000##FFFFFF
##54120C1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26210B
Deuteranopia (green-blind)
#363009
Tritanopia (blue-blind)
#5D0011
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #54120c;
/* rgb */ color: rgb(84, 18, 12);
/* oklch */ color: oklch(29.8% 0.098 29.4);
Tailwind
colors: {
  custom: {
    50: '#8b554c',
    500: '#54120c',
    950: '#000000',
  },
}
SCSS
$custom: #54120c;
$custom-light: #8b554c;
$custom-dark: #000000;
JSON
{
  "hex": "#54120c",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 12
  },
  "hsl": {
    "h": 5,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.2977,
    "c": 0.09803,
    "h": 29.4
  },
  "luminance": 0.02344
}

Semantic roles & 50–950 ramp

primary
#54120C
secondary
#2D878F
accent
#E2F236
background
#F9F5F4
surface
#F1E9E7
border
#CBC5C3
text
#0D0301
muted
#7E7877

Preview Lab

Preview with #54120C

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

Preview Lab → · Contrast checker → · Palette generator →

#54120C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva