#54181B#54181B

#54181B is a dark, moderate red. Relative luminance 0.026; OKLCH L 30.8% C 0.089 H 21.2°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#54181B
RGBrgb(84, 24, 27)
HSLhsl(357, 56%, 21%)
HSVhsv(357, 71%, 33%)
CMYKcmyk(0%, 71.4%, 67.9%, 67.1%)
CIE-LABlab(18.44, 28.04, 13.42)
CIE-LCHlch(18.44, 31.09, 25.57°)
OKLaboklab(30.78% 0.083 0.0323)
OKLCHoklch(30.78% 0.089 21.2)
XYZxyz(4.1810, 2.6178, 1.3218)
Luminance0.0262 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54181B #185451
analogous
#541839 #54181B #543318
triadic
#54181B #1B5418 #181B54
tetradic
#54181B #395418 #185451 #331854
square
#54181B #395418 #185451 #331854
split-complementary
#54181B #185433 #183954
monochromatic
#180708 #240A0C #54181B #84262A #B3333A

Accessibility & contrast

On white

13.78
#54181B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#54181B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54181B
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54181B#FFFFFF#000000##FFFFFF
##54181B1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28251B
Deuteranopia (green-blind)
#373219
Tritanopia (blue-blind)
#5D0A1A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #54181b;
/* rgb */ color: rgb(84, 24, 27);
/* oklch */ color: oklch(30.8% 0.089 21.2);
Tailwind
colors: {
  custom: {
    50: '#895957',
    500: '#54181b',
    950: '#000000',
  },
}
SCSS
$custom: #54181b;
$custom-light: #895957;
$custom-dark: #000000;
JSON
{
  "hex": "#54181b",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 27
  },
  "hsl": {
    "h": 357,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30776,
    "c": 0.08907,
    "h": 21.2
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#54181B
secondary
#3D8B87
accent
#DFD749
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0403
muted
#7D7978

Preview Lab

Preview with #54181B

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

Preview Lab → · Contrast checker → · Palette generator →

#54181B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva