#54171E#54171E

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

Color values

HEX#54171E
RGBrgb(84, 23, 30)
HSLhsl(353, 57%, 21%)
HSVhsv(353, 73%, 33%)
CMYKcmyk(0%, 72.6%, 64.3%, 67.1%)
CIE-LABlab(18.33, 28.76, 11.17)
CIE-LCHlch(18.33, 30.85, 21.22°)
OKLaboklab(30.71% 0.0859 0.0274)
OKLCHoklch(30.71% 0.09 17.7)
XYZxyz(4.1973, 2.5919, 1.5073)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54171E #17544D
analogous
#54173C #54171E #542E17
triadic
#54171E #1E5417 #171E54
tetradic
#54171E #3C5417 #17544D #2E1754
square
#54171E #3C5417 #17544D #2E1754
split-complementary
#54171E #17542E #173C54
monochromatic
#180709 #240A0D #54171E #84242F #B43140

Accessibility & contrast

On white

13.83
#54171E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54171E
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54171E#FFFFFF#000000##FFFFFF
##54171E1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27251E
Deuteranopia (green-blind)
#36311C
Tritanopia (blue-blind)
#5D0A1A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #54171e;
/* rgb */ color: rgb(84, 23, 30);
/* oklch */ color: oklch(30.7% 0.090 17.7);
Tailwind
colors: {
  custom: {
    50: '#895859',
    500: '#54171e',
    950: '#000000',
  },
}
SCSS
$custom: #54171e;
$custom-light: #895859;
$custom-dark: #000000;
JSON
{
  "hex": "#54171e",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 353.115,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30712,
    "c": 0.09018,
    "h": 17.7
  },
  "luminance": 0.02591
}

Semantic roles & 50–950 ramp

primary
#54171E
secondary
#3C8B82
accent
#E0CF48
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #54171E

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

Preview Lab → · Contrast checker → · Palette generator →

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