#4F170D#4F170D

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

Color values

HEX#4F170D
RGBrgb(79, 23, 13)
HSLhsl(9, 72%, 18%)
HSVhsv(9, 84%, 31%)
CMYKcmyk(0%, 70.9%, 83.5%, 69%)
CIE-LABlab(17.01, 25.69, 20.23)
CIE-LCHlch(17.01, 32.70, 38.23°)
OKLaboklab(29.44% 0.0731 0.0463)
OKLCHoklch(29.44% 0.087 32.4)
XYZxyz(3.6039, 2.3046, 0.6358)
Luminance0.0230 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F170D #0D454F
analogous
#4F0D24 #4F170D #4F380D
triadic
#4F170D #0D4F17 #170D4F
tetradic
#4F170D #244F0D #0D454F #380D4F
square
#4F170D #244F0D #0D454F #380D4F
split-complementary
#4F170D #0D4F38 #0D244F
monochromatic
#1A0804 #1A0804 #4F170D #842616 #B8361E

Accessibility & contrast

On white

14.38
#4F170D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F170D
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F170D#FFFFFF#000000##FFFFFF
##4F170D1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27220C
Deuteranopia (green-blind)
#352E0B
Tritanopia (blue-blind)
#580815
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4f170d;
/* rgb */ color: rgb(79, 23, 13);
/* oklch */ color: oklch(29.4% 0.087 32.4);
Tailwind
colors: {
  custom: {
    50: '#86574c',
    500: '#4f170d',
    950: '#000000',
  },
}
SCSS
$custom: #4f170d;
$custom-light: #86574c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f170d",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 13
  },
  "hsl": {
    "h": 9.091,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.29437,
    "c": 0.08651,
    "h": 32.4
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#4F170D
secondary
#2E7C8A
accent
#D3EE39
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0301
muted
#7D7877

Preview Lab

Preview with #4F170D

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

Preview Lab → · Contrast checker → · Palette generator →

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