#54171F#54171F

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

Color values

HEX#54171F
RGBrgb(84, 23, 31)
HSLhsl(352, 57%, 21%)
HSVhsv(352, 73%, 33%)
CMYKcmyk(0%, 72.6%, 63.1%, 67.1%)
CIE-LABlab(18.35, 28.84, 10.49)
CIE-LCHlch(18.35, 30.69, 19.99°)
OKLaboklab(30.74% 0.0864 0.0259)
OKLCHoklch(30.74% 0.09 16.7)
XYZxyz(4.2103, 2.5971, 1.5756)
Luminance0.0260 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54171F #17544C
analogous
#54173D #54171F #542D17
triadic
#54171F #1F5417 #171F54
tetradic
#54171F #3D5417 #17544C #2D1754
square
#54171F #3D5417 #17544C #2D1754
split-complementary
#54171F #17542D #173D54
monochromatic
#180709 #240A0D #54171F #842431 #B43142

Accessibility & contrast

On white

13.82
#54171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54171F
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54171F#FFFFFF#000000##FFFFFF
##54171F1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26251F
Deuteranopia (green-blind)
#36311D
Tritanopia (blue-blind)
#5C0A1A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #54171f;
/* rgb */ color: rgb(84, 23, 31);
/* oklch */ color: oklch(30.7% 0.090 16.7);
Tailwind
colors: {
  custom: {
    50: '#89585a',
    500: '#54171f',
    950: '#000000',
  },
}
SCSS
$custom: #54171f;
$custom-light: #89585a;
$custom-dark: #000000;
JSON
{
  "hex": "#54171f",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 352.131,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30736,
    "c": 0.09017,
    "h": 16.7
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#54171F
secondary
#3C8B81
accent
#E0CC48
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #54171F

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

Preview Lab → · Contrast checker → · Palette generator →

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