#4D171A#4D171A

#4D171A is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.3% C 0.082 H 20.5°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#4D171A
RGBrgb(77, 23, 26)
HSLhsl(357, 54%, 20%)
HSVhsv(357, 70%, 30%)
CMYKcmyk(0%, 70.1%, 66.2%, 69.8%)
CIE-LABlab(16.82, 25.71, 11.75)
CIE-LCHlch(16.82, 28.27, 24.56°)
OKLaboklab(29.29% 0.0764 0.0286)
OKLCHoklch(29.29% 0.082 20.5)
XYZxyz(3.5538, 2.2656, 1.2273)
Luminance0.0226 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D171A #174D4A
analogous
#4D1735 #4D171A #4D2F17
triadic
#4D171A #1A4D17 #171A4D
tetradic
#4D171A #354D17 #174D4A #2F174D
square
#4D171A #354D17 #174D4A #2F174D
split-complementary
#4D171A #174D2F #17354D
monochromatic
#180708 #1E090A #4D171A #7C252A #AB333A

Accessibility & contrast

On white

14.45
#4D171A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#4D171A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D171A
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D171A#FFFFFF#000000##FFFFFF
##4D171A1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25221A
Deuteranopia (green-blind)
#322E19
Tritanopia (blue-blind)
#550C18
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4d171a;
/* rgb */ color: rgb(77, 23, 26);
/* oklch */ color: oklch(29.3% 0.082 20.5);
Tailwind
colors: {
  custom: {
    50: '#835756',
    500: '#4d171a',
    950: '#000000',
  },
}
SCSS
$custom: #4d171a;
$custom-light: #835756;
$custom-dark: #000000;
JSON
{
  "hex": "#4d171a",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 356.667,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2929,
    "c": 0.08155,
    "h": 20.5
  },
  "luminance": 0.02265
}

Semantic roles & 50–950 ramp

primary
#4D171A
secondary
#3C8480
accent
#DDD54A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0B0303
muted
#7C7878

Preview Lab

Preview with #4D171A

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

Preview Lab → · Contrast checker → · Palette generator →

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