#4D170F#4D170F

#4D170F is a dark, moderate red. Relative luminance 0.022; OKLCH L 29.1% C 0.083 H 31.0°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#4D170F
RGBrgb(77, 23, 15)
HSLhsl(8, 67%, 18%)
HSVhsv(8, 81%, 30%)
CMYKcmyk(0%, 70.1%, 80.5%, 69.8%)
CIE-LABlab(16.63, 24.96, 18.66)
CIE-LCHlch(16.63, 31.17, 36.78°)
OKLaboklab(29.08% 0.0715 0.0431)
OKLCHoklch(29.08% 0.083 31)
XYZxyz(3.4536, 2.2256, 0.6996)
Luminance0.0222 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D170F #0F454D
analogous
#4D0F26 #4D170F #4D360F
triadic
#4D170F #0F4D17 #170F4D
tetradic
#4D170F #264D0F #0F454D #360F4D
square
#4D170F #264D0F #0F454D #360F4D
split-complementary
#4D170F #0F4D36 #0F264D
monochromatic
#1A0805 #1A0805 #4D170F #802619 #B33623

Accessibility & contrast

On white

14.53
#4D170F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D170F
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D170F#FFFFFF#000000##FFFFFF
##4D170F1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26220E
Deuteranopia (green-blind)
#332D0D
Tritanopia (blue-blind)
#550915
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4d170f;
/* rgb */ color: rgb(77, 23, 15);
/* oklch */ color: oklch(29.1% 0.083 31.0);
Tailwind
colors: {
  custom: {
    50: '#84574e',
    500: '#4d170f',
    950: '#000000',
  },
}
SCSS
$custom: #4d170f;
$custom-light: #84574e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d170f",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 15
  },
  "hsl": {
    "h": 7.742,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.29081,
    "c": 0.08349,
    "h": 31
  },
  "luminance": 0.02225
}

Semantic roles & 50–950 ramp

primary
#4D170F
secondary
#317C87
accent
#D4EA3E
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0301
muted
#7D7877

Preview Lab

Preview with #4D170F

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

Preview Lab → · Contrast checker → · Palette generator →

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