#4F171A#4F171A

#4F171A is a dark, moderate red. Relative luminance 0.024; OKLCH L 29.7% C 0.084 H 20.8°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#4F171A
RGBrgb(79, 23, 26)
HSLhsl(357, 55%, 20%)
HSVhsv(357, 71%, 31%)
CMYKcmyk(0%, 70.9%, 67.1%, 69%)
CIE-LABlab(17.23, 26.51, 12.35)
CIE-LCHlch(17.23, 29.24, 24.98°)
OKLaboklab(29.67% 0.0786 0.0299)
OKLCHoklch(29.67% 0.084 20.8)
XYZxyz(3.7177, 2.3501, 1.2349)
Luminance0.0235 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F171A #174F4C
analogous
#4F1736 #4F171A #4F3017
triadic
#4F171A #1A4F17 #171A4F
tetradic
#4F171A #364F17 #174F4C #30174F
square
#4F171A #364F17 #174F4C #30174F
split-complementary
#4F171A #174F30 #17364F
monochromatic
#180708 #20090A #4F171A #7E252A #AE3339

Accessibility & contrast

On white

14.29
#4F171A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#4F171A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F171A
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F171A#FFFFFF#000000##FFFFFF
##4F171A1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231A
Deuteranopia (green-blind)
#342F19
Tritanopia (blue-blind)
#570B19
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4f171a;
/* rgb */ color: rgb(79, 23, 26);
/* oklch */ color: oklch(29.7% 0.084 20.8);
Tailwind
colors: {
  custom: {
    50: '#855756',
    500: '#4f171a',
    950: '#000000',
  },
}
SCSS
$custom: #4f171a;
$custom-light: #855756;
$custom-dark: #000000;
JSON
{
  "hex": "#4f171a",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 356.786,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29668,
    "c": 0.08411,
    "h": 20.8
  },
  "luminance": 0.0235
}

Semantic roles & 50–950 ramp

primary
#4F171A
secondary
#3C8682
accent
#DED64A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #4F171A

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

Preview Lab → · Contrast checker → · Palette generator →

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