#54171B#54171B

#54171B is a dark, moderate red. Relative luminance 0.026; OKLCH L 30.6% C 0.090 H 20.6°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#54171B
RGBrgb(84, 23, 27)
HSLhsl(356, 57%, 21%)
HSVhsv(356, 73%, 33%)
CMYKcmyk(0%, 72.6%, 67.9%, 67.1%)
CIE-LABlab(18.26, 28.53, 13.19)
CIE-LCHlch(18.26, 31.43, 24.81°)
OKLaboklab(30.64% 0.0846 0.0317)
OKLCHoklch(30.64% 0.09 20.6)
XYZxyz(4.1608, 2.5773, 1.3151)
Luminance0.0258 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54171B #175450
analogous
#541739 #54171B #543117
triadic
#54171B #1B5417 #171B54
tetradic
#54171B #395417 #175450 #311754
square
#54171B #395417 #175450 #311754
split-complementary
#54171B #175431 #173954
monochromatic
#180708 #240A0C #54171B #84242A #B4313A

Accessibility & contrast

On white

13.86
#54171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54171B
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54171B#FFFFFF#000000##FFFFFF
##54171B1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27241B
Deuteranopia (green-blind)
#363119
Tritanopia (blue-blind)
#5D0919
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #54171b;
/* rgb */ color: rgb(84, 23, 27);
/* oklch */ color: oklch(30.6% 0.090 20.6);
Tailwind
colors: {
  custom: {
    50: '#895857',
    500: '#54171b',
    950: '#000000',
  },
}
SCSS
$custom: #54171b;
$custom-light: #895857;
$custom-dark: #000000;
JSON
{
  "hex": "#54171b",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 356.066,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30642,
    "c": 0.09032,
    "h": 20.6
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#54171B
secondary
#3C8B86
accent
#E0D648
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #54171B

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

Preview Lab → · Contrast checker → · Palette generator →

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