#4E171C#4E171C

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

Color values

HEX#4E171C
RGBrgb(78, 23, 28)
HSLhsl(355, 54%, 20%)
HSVhsv(355, 71%, 31%)
CMYKcmyk(0%, 70.5%, 64.1%, 69.4%)
CIE-LABlab(17.07, 26.28, 10.69)
CIE-LCHlch(17.07, 28.37, 22.14°)
OKLaboklab(29.53% 0.0784 0.0262)
OKLCHoklch(29.53% 0.083 18.5)
XYZxyz(3.6582, 2.3168, 1.3529)
Luminance0.0232 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E171C #174E49
analogous
#4E1738 #4E171C #4E2D17
triadic
#4E171C #1C4E17 #171C4E
tetradic
#4E171C #384E17 #174E49 #2D174E
square
#4E171C #384E17 #174E49 #2D174E
split-complementary
#4E171C #174E2D #17384E
monochromatic
#180708 #1F090B #4E171C #7D252D #AD333E

Accessibility & contrast

On white

14.35
#4E171C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E171C
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E171C#FFFFFF#000000##FFFFFF
##4E171C1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e171c;
/* rgb */ color: rgb(78, 23, 28);
/* oklch */ color: oklch(29.5% 0.083 18.5);
Tailwind
colors: {
  custom: {
    50: '#845757',
    500: '#4e171c',
    950: '#000000',
  },
}
SCSS
$custom: #4e171c;
$custom-light: #845757;
$custom-dark: #000000;
JSON
{
  "hex": "#4e171c",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 354.545,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29526,
    "c": 0.08271,
    "h": 18.5
  },
  "luminance": 0.02316
}

Semantic roles & 50–950 ramp

primary
#4E171C
secondary
#3C857E
accent
#DED04A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0B0303
muted
#7C7878

Preview Lab

Preview with #4E171C

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

Preview Lab → · Contrast checker → · Palette generator →

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