#54271D#54271D

#54271D is a dark, moderate red. Relative luminance 0.034; OKLCH L 33.2% C 0.070 H 33.8°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#54271D
RGBrgb(84, 39, 29)
HSLhsl(11, 49%, 22%)
HSVhsv(11, 65%, 33%)
CMYKcmyk(0%, 53.6%, 65.5%, 67.1%)
CIE-LABlab(21.67, 19.88, 16.16)
CIE-LCHlch(21.67, 25.62, 39.10°)
OKLaboklab(33.23% 0.0579 0.0387)
OKLCHoklch(33.23% 0.07 33.8)
XYZxyz(4.6038, 3.4251, 1.5808)
Luminance0.0343 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54271D #1D4A54
analogous
#541D2F #54271D #54431D
triadic
#54271D #1D5427 #271D54
tetradic
#54271D #2F541D #1D4A54 #431D54
square
#54271D #2F541D #1D4A54 #431D54
split-complementary
#54271D #1D5443 #1D2F54
monochromatic
#170B08 #27120D #54271D #813C2D #AF513C

Accessibility & contrast

On white

12.46
#54271D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#54271D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54271D
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54271D#FFFFFF#000000##FFFFFF
##54271D1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322E1C
Deuteranopia (green-blind)
#3D381C
Tritanopia (blue-blind)
#5C1F25
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #54271d;
/* rgb */ color: rgb(84, 39, 29);
/* oklch */ color: oklch(33.2% 0.070 33.8);
Tailwind
colors: {
  custom: {
    50: '#886259',
    500: '#54271d',
    950: '#000000',
  },
}
SCSS
$custom: #54271d;
$custom-light: #886259;
$custom-dark: #000000;
JSON
{
  "hex": "#54271d",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 10.909,
    "s": 48.673,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33228,
    "c": 0.06964,
    "h": 33.8
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

primary
#54271D
secondary
#447D89
accent
#BFD850
background
#F8F5F5
surface
#F0EAE9
border
#CBC6C5
text
#0C0503
muted
#7D7978

Preview Lab

Preview with #54271D

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

Preview Lab → · Contrast checker → · Palette generator →

#54271D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva