#4D170D#4D170D

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

Color values

HEX#4D170D
RGBrgb(77, 23, 13)
HSLhsl(9, 71%, 18%)
HSVhsv(9, 83%, 30%)
CMYKcmyk(0%, 70.1%, 83.1%, 69.8%)
CIE-LABlab(16.60, 24.86, 19.64)
CIE-LCHlch(16.60, 31.68, 38.31°)
OKLaboklab(29.05% 0.0707 0.0453)
OKLCHoklch(29.05% 0.084 32.6)
XYZxyz(3.4400, 2.2201, 0.6281)
Luminance0.0222 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D170D #0D434D
analogous
#4D0D23 #4D170D #4D370D
triadic
#4D170D #0D4D17 #170D4D
tetradic
#4D170D #234D0D #0D434D #370D4D
square
#4D170D #234D0D #0D434D #370D4D
split-complementary
#4D170D #0D4D37 #0D234D
monochromatic
#1A0804 #1A0804 #4D170D #812716 #B6361F

Accessibility & contrast

On white

14.54
#4D170D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D170D
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D170D#FFFFFF#000000##FFFFFF
##4D170D1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d170d;
/* rgb */ color: rgb(77, 23, 13);
/* oklch */ color: oklch(29.1% 0.084 32.6);
Tailwind
colors: {
  custom: {
    50: '#84574c',
    500: '#4d170d',
    950: '#000000',
  },
}
SCSS
$custom: #4d170d;
$custom-light: #84574c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d170d",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 13
  },
  "hsl": {
    "h": 9.375,
    "s": 71.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.29052,
    "c": 0.08399,
    "h": 32.6
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#4D170D
secondary
#2E7A88
accent
#D2EE3A
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0301
muted
#7D7877

Preview Lab

Preview with #4D170D

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

Preview Lab → · Contrast checker → · Palette generator →

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