#4D171C#4D171C

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

Color values

HEX#4D171C
RGBrgb(77, 23, 28)
HSLhsl(354, 54%, 20%)
HSVhsv(354, 70%, 30%)
CMYKcmyk(0%, 70.1%, 63.6%, 69.8%)
CIE-LABlab(16.87, 25.88, 10.39)
CIE-LCHlch(16.87, 27.89, 21.87°)
OKLaboklab(29.34% 0.0773 0.0256)
OKLCHoklch(29.34% 0.081 18.3)
XYZxyz(3.5769, 2.2749, 1.3491)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D171C #174D48
analogous
#4D1737 #4D171C #4D2D17
triadic
#4D171C #1C4D17 #171C4D
tetradic
#4D171C #374D17 #174D48 #2D174D
square
#4D171C #374D17 #174D48 #2D174D
split-complementary
#4D171C #174D2D #17374D
monochromatic
#180709 #1E090B #4D171C #7C252D #AB333E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D171C#FFFFFF#000000##FFFFFF
##4D171C1.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24221C
Deuteranopia (green-blind)
#322E1B
Tritanopia (blue-blind)
#550D19
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4d171c;
/* rgb */ color: rgb(77, 23, 28);
/* oklch */ color: oklch(29.3% 0.081 18.3);
Tailwind
colors: {
  custom: {
    50: '#835757',
    500: '#4d171c',
    950: '#000000',
  },
}
SCSS
$custom: #4d171c;
$custom-light: #835757;
$custom-dark: #000000;
JSON
{
  "hex": "#4d171c",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 354.444,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29338,
    "c": 0.08143,
    "h": 18.3
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

primary
#4D171C
secondary
#3C847D
accent
#DDD04A
background
#F8F5F5
surface
#EFE9E9
border
#CAC5C5
text
#0B0303
muted
#7C7878

Preview Lab

Preview with #4D171C

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

Preview Lab → · Contrast checker → · Palette generator →

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