#4E171B#4E171B

#4E171B is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.5% C 0.083 H 19.6°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#4E171B
RGBrgb(78, 23, 27)
HSLhsl(356, 54%, 20%)
HSVhsv(356, 71%, 31%)
CMYKcmyk(0%, 70.5%, 65.4%, 69.4%)
CIE-LABlab(17.05, 26.19, 11.37)
CIE-LCHlch(17.05, 28.56, 23.47°)
OKLaboklab(29.5% 0.078 0.0277)
OKLCHoklch(29.5% 0.083 19.6)
XYZxyz(3.6465, 2.3121, 1.2910)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E171B #174E4A
analogous
#4E1737 #4E171B #4E2E17
triadic
#4E171B #1B4E17 #171B4E
tetradic
#4E171B #374E17 #174E4A #2E174E
square
#4E171B #374E17 #174E4A #2E174E
split-complementary
#4E171B #174E2E #17374E
monochromatic
#180708 #1F090B #4E171B #7D252B #AD333C

Accessibility & contrast

On white

14.36
#4E171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E171B
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E171B#FFFFFF#000000##FFFFFF
##4E171B1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231B
Deuteranopia (green-blind)
#332E1A
Tritanopia (blue-blind)
#560C19
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4e171b;
/* rgb */ color: rgb(78, 23, 27);
/* oklch */ color: oklch(29.5% 0.083 19.6);
Tailwind
colors: {
  custom: {
    50: '#845757',
    500: '#4e171b',
    950: '#000000',
  },
}
SCSS
$custom: #4e171b;
$custom-light: #845757;
$custom-dark: #000000;
JSON
{
  "hex": "#4e171b",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 355.636,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29502,
    "c": 0.08276,
    "h": 19.6
  },
  "luminance": 0.02312
}

Semantic roles & 50–950 ramp

primary
#4E171B
secondary
#3C8580
accent
#DED34A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0B0303
muted
#7C7878

Preview Lab

Preview with #4E171B

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

Preview Lab → · Contrast checker → · Palette generator →

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