#4D171D#4D171D

#4D171D is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.4% C 0.081 H 17.2°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#4D171D
RGBrgb(77, 23, 29)
HSLhsl(353, 54%, 20%)
HSVhsv(353, 70%, 30%)
CMYKcmyk(0%, 70.1%, 62.3%, 69.8%)
CIE-LABlab(16.89, 25.97, 9.71)
CIE-LCHlch(16.89, 27.73, 20.50°)
OKLaboklab(29.36% 0.0778 0.024)
OKLCHoklch(29.36% 0.081 17.2)
XYZxyz(3.5891, 2.2798, 1.4132)
Luminance0.0228 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D171D #174D47
analogous
#4D1738 #4D171D #4D2C17
triadic
#4D171D #1D4D17 #171D4D
tetradic
#4D171D #384D17 #174D47 #2C174D
square
#4D171D #384D17 #174D47 #2C174D
split-complementary
#4D171D #174D2C #17384D
monochromatic
#180709 #1E090B #4D171D #7C252F #AB3340

Accessibility & contrast

On white

14.43
#4D171D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#4D171D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D171D
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D171D#FFFFFF#000000##FFFFFF
##4D171D1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24231D
Deuteranopia (green-blind)
#322E1C
Tritanopia (blue-blind)
#550D19
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4d171d;
/* rgb */ color: rgb(77, 23, 29);
/* oklch */ color: oklch(29.4% 0.081 17.2);
Tailwind
colors: {
  custom: {
    50: '#835758',
    500: '#4d171d',
    950: '#000000',
  },
}
SCSS
$custom: #4d171d;
$custom-light: #835758;
$custom-dark: #000000;
JSON
{
  "hex": "#4d171d",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 29
  },
  "hsl": {
    "h": 353.333,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29363,
    "c": 0.08141,
    "h": 17.2
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#4D171D
secondary
#3C847C
accent
#DDCD4A
background
#F8F5F5
surface
#EFE9E9
border
#CAC5C5
text
#0B0303
muted
#7C7878

Preview Lab

Preview with #4D171D

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

Preview Lab → · Contrast checker → · Palette generator →

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