#4F171E#4F171E

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

Color values

HEX#4F171E
RGBrgb(79, 23, 30)
HSLhsl(353, 55%, 20%)
HSVhsv(353, 71%, 31%)
CMYKcmyk(0%, 70.9%, 62%, 69%)
CIE-LABlab(17.32, 26.84, 9.64)
CIE-LCHlch(17.32, 28.52, 19.75°)
OKLaboklab(29.77% 0.0805 0.0239)
OKLCHoklch(29.77% 0.084 16.5)
XYZxyz(3.7655, 2.3693, 1.4871)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F171E #174F48
analogous
#4F173A #4F171E #4F2C17
triadic
#4F171E #1E4F17 #171E4F
tetradic
#4F171E #3A4F17 #174F48 #2C174F
square
#4F171E #3A4F17 #174F48 #2C174F
split-complementary
#4F171E #174F2C #173A4F
monochromatic
#180709 #20090C #4F171E #7E2530 #AE3342

Accessibility & contrast

On white

14.25
#4F171E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F171E
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F171E#FFFFFF#000000##FFFFFF
##4F171E1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231E
Deuteranopia (green-blind)
#332F1D
Tritanopia (blue-blind)
#570C1A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4f171e;
/* rgb */ color: rgb(79, 23, 30);
/* oklch */ color: oklch(29.8% 0.084 16.5);
Tailwind
colors: {
  custom: {
    50: '#845859',
    500: '#4f171e',
    950: '#000000',
  },
}
SCSS
$custom: #4f171e;
$custom-light: #845859;
$custom-dark: #000000;
JSON
{
  "hex": "#4f171e",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 352.5,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29765,
    "c": 0.08396,
    "h": 16.5
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

primary
#4F171E
secondary
#3C867D
accent
#DECC4A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0B0303
muted
#7C7878

Preview Lab

Preview with #4F171E

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

Preview Lab → · Contrast checker → · Palette generator →

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