#4D170A#4D170A

#4D170A is a dark, moderate red. Relative luminance 0.022; OKLCH L 29.0% C 0.085 H 34.7°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#4D170A
RGBrgb(77, 23, 10)
HSLhsl(12, 77%, 17%)
HSVhsv(12, 87%, 30%)
CMYKcmyk(0%, 70.1%, 87%, 69.8%)
CIE-LABlab(16.57, 24.73, 20.93)
CIE-LCHlch(16.57, 32.39, 40.24°)
OKLaboklab(29.02% 0.0697 0.0483)
OKLCHoklch(29.02% 0.085 34.7)
XYZxyz(3.4221, 2.2130, 0.5341)
Luminance0.0221 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D170A #0A404D
analogous
#4D0A1F #4D170A #4D390A
triadic
#4D170A #0A4D17 #170A4D
tetradic
#4D170A #1F4D0A #0A404D #390A4D
square
#4D170A #1F4D0A #0A404D #390A4D
split-complementary
#4D170A #0A4D39 #0A1F4D
monochromatic
#1B0804 #1B0804 #4D170A #832711 #B93718

Accessibility & contrast

On white

14.56
#4D170A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#4D170A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D170A
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D170A#FFFFFF#000000##FFFFFF
##4D170A1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262108
Deuteranopia (green-blind)
#342D08
Tritanopia (blue-blind)
#560914
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4d170a;
/* rgb */ color: rgb(77, 23, 10);
/* oklch */ color: oklch(29.0% 0.085 34.7);
Tailwind
colors: {
  custom: {
    50: '#84574b',
    500: '#4d170a',
    950: '#000000',
  },
}
SCSS
$custom: #4d170a;
$custom-light: #84574b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d170a",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 10
  },
  "hsl": {
    "h": 11.642,
    "s": 77.011,
    "l": 17.059
  },
  "oklch": {
    "l": 0.29015,
    "c": 0.08474,
    "h": 34.7
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#4D170A
secondary
#29778A
accent
#CEF434
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0301
muted
#7D7877

Preview Lab

Preview with #4D170A

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

Preview Lab → · Contrast checker → · Palette generator →

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