#4E171A#4E171A

#4E171A is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.5% C 0.083 H 20.6°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#4E171A
RGBrgb(78, 23, 26)
HSLhsl(357, 54%, 20%)
HSVhsv(357, 71%, 31%)
CMYKcmyk(0%, 70.5%, 66.7%, 69.4%)
CIE-LABlab(17.03, 26.11, 12.05)
CIE-LCHlch(17.03, 28.76, 24.78°)
OKLaboklab(29.48% 0.0775 0.0292)
OKLCHoklch(29.48% 0.083 20.6)
XYZxyz(3.6351, 2.3076, 1.2311)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E171A #174E4B
analogous
#4E1736 #4E171A #4E2F17
triadic
#4E171A #1A4E17 #171A4E
tetradic
#4E171A #364E17 #174E4B #2F174E
square
#4E171A #364E17 #174E4B #2F174E
split-complementary
#4E171A #174E2F #17364E
monochromatic
#180708 #1F090A #4E171A #7D252A #AD333A

Accessibility & contrast

On white

14.37
#4E171A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#4E171A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E171A
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E171A#FFFFFF#000000##FFFFFF
##4E171A1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231A
Deuteranopia (green-blind)
#332E19
Tritanopia (blue-blind)
#560C18
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4e171a;
/* rgb */ color: rgb(78, 23, 26);
/* oklch */ color: oklch(29.5% 0.083 20.6);
Tailwind
colors: {
  custom: {
    50: '#845756',
    500: '#4e171a',
    950: '#000000',
  },
}
SCSS
$custom: #4e171a;
$custom-light: #845756;
$custom-dark: #000000;
JSON
{
  "hex": "#4e171a",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 356.727,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29479,
    "c": 0.08283,
    "h": 20.6
  },
  "luminance": 0.02307
}

Semantic roles & 50–950 ramp

primary
#4E171A
secondary
#3C8581
accent
#DED64A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0B0303
muted
#7C7878

Preview Lab

Preview with #4E171A

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

Preview Lab → · Contrast checker → · Palette generator →

#4E171A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva