#4D170B#4D170B

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

Color values

HEX#4D170B
RGBrgb(77, 23, 11)
HSLhsl(11, 75%, 17%)
HSVhsv(11, 86%, 30%)
CMYKcmyk(0%, 70.1%, 85.7%, 69.8%)
CIE-LABlab(16.58, 24.77, 20.52)
CIE-LCHlch(16.58, 32.17, 39.64°)
OKLaboklab(29.03% 0.07 0.0473)
OKLCHoklch(29.03% 0.085 34)
XYZxyz(3.4277, 2.2152, 0.5636)
Luminance0.0221 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D170B #0B414D
analogous
#4D0B20 #4D170B #4D380B
triadic
#4D170B #0B4D17 #170B4D
tetradic
#4D170B #204D0B #0B414D #380B4D
square
#4D170B #204D0B #0B414D #380B4D
split-complementary
#4D170B #0B4D38 #0B204D
monochromatic
#1B0804 #1B0804 #4D170B #832713 #B8371A

Accessibility & contrast

On white

14.55
#4D170B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D170B
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D170B#FFFFFF#000000##FFFFFF
##4D170B1.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262109
Deuteranopia (green-blind)
#342D09
Tritanopia (blue-blind)
#550915
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4d170b;
/* rgb */ color: rgb(77, 23, 11);
/* oklch */ color: oklch(29.0% 0.085 34.0);
Tailwind
colors: {
  custom: {
    50: '#84574b',
    500: '#4d170b',
    950: '#000000',
  },
}
SCSS
$custom: #4d170b;
$custom-light: #84574b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d170b",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 11
  },
  "hsl": {
    "h": 10.909,
    "s": 75,
    "l": 17.255
  },
  "oklch": {
    "l": 0.29027,
    "c": 0.0845,
    "h": 34
  },
  "luminance": 0.02215
}

Semantic roles & 50–950 ramp

primary
#4D170B
secondary
#2B7889
accent
#D0F236
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0301
muted
#7D7877

Preview Lab

Preview with #4D170B

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

Preview Lab → · Contrast checker → · Palette generator →

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