#54171D#54171D

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

Color values

HEX#54171D
RGBrgb(84, 23, 29)
HSLhsl(354, 57%, 21%)
HSVhsv(354, 73%, 33%)
CMYKcmyk(0%, 72.6%, 65.5%, 67.1%)
CIE-LABlab(18.31, 28.68, 11.84)
CIE-LCHlch(18.31, 31.03, 22.44°)
OKLaboklab(30.69% 0.0855 0.0288)
OKLCHoklch(30.69% 0.09 18.6)
XYZxyz(4.1847, 2.5869, 1.4411)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54171D #17544E
analogous
#54173B #54171D #542F17
triadic
#54171D #1D5417 #171D54
tetradic
#54171D #3B5417 #17544E #2F1754
square
#54171D #3B5417 #17544E #2F1754
split-complementary
#54171D #17542F #173B54
monochromatic
#180708 #240A0C #54171D #84242E #B4313E

Accessibility & contrast

On white

13.84
#54171D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54171D
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54171D#FFFFFF#000000##FFFFFF
##54171D1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27251D
Deuteranopia (green-blind)
#36311B
Tritanopia (blue-blind)
#5D091A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #54171d;
/* rgb */ color: rgb(84, 23, 29);
/* oklch */ color: oklch(30.7% 0.090 18.6);
Tailwind
colors: {
  custom: {
    50: '#895858',
    500: '#54171d',
    950: '#000000',
  },
}
SCSS
$custom: #54171d;
$custom-light: #895858;
$custom-dark: #000000;
JSON
{
  "hex": "#54171d",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 29
  },
  "hsl": {
    "h": 354.098,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30688,
    "c": 0.0902,
    "h": 18.6
  },
  "luminance": 0.02586
}

Semantic roles & 50–950 ramp

primary
#54171D
secondary
#3C8B83
accent
#E0D148
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #54171D

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

Preview Lab → · Contrast checker → · Palette generator →

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