#4F171D#4F171D

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

Color values

HEX#4F171D
RGBrgb(79, 23, 29)
HSLhsl(354, 55%, 20%)
HSVhsv(354, 71%, 31%)
CMYKcmyk(0%, 70.9%, 63.3%, 69%)
CIE-LABlab(17.29, 26.76, 10.32)
CIE-LCHlch(17.29, 28.68, 21.08°)
OKLaboklab(29.74% 0.08 0.0254)
OKLCHoklch(29.74% 0.084 17.6)
XYZxyz(3.7530, 2.3643, 1.4209)
Luminance0.0236 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F171D #174F49
analogous
#4F1739 #4F171D #4F2D17
triadic
#4F171D #1D4F17 #171D4F
tetradic
#4F171D #394F17 #174F49 #2D174F
square
#4F171D #394F17 #174F49 #2D174F
split-complementary
#4F171D #174F2D #17394F
monochromatic
#180709 #20090C #4F171D #7E252E #AE3340

Accessibility & contrast

On white

14.26
#4F171D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F171D
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F171D#FFFFFF#000000##FFFFFF
##4F171D1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231D
Deuteranopia (green-blind)
#332F1C
Tritanopia (blue-blind)
#570C1A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4f171d;
/* rgb */ color: rgb(79, 23, 29);
/* oklch */ color: oklch(29.7% 0.084 17.6);
Tailwind
colors: {
  custom: {
    50: '#855858',
    500: '#4f171d',
    950: '#000000',
  },
}
SCSS
$custom: #4f171d;
$custom-light: #855858;
$custom-dark: #000000;
JSON
{
  "hex": "#4f171d",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 29
  },
  "hsl": {
    "h": 353.571,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29739,
    "c": 0.08396,
    "h": 17.6
  },
  "luminance": 0.02364
}

Semantic roles & 50–950 ramp

primary
#4F171D
secondary
#3C867E
accent
#DECE4A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #4F171D

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

Preview Lab → · Contrast checker → · Palette generator →

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