#4C5040#4C5040

#4C5040 is a dark, muted yellow-green. Relative luminance 0.076; OKLCH L 42.3% C 0.026 H 118.9°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#4C5040
RGBrgb(76, 80, 64)
HSLhsl(75, 11%, 28%)
HSVhsv(75, 20%, 31%)
CMYKcmyk(5%, 0%, 20%, 68.6%)
CIE-LABlab(33.23, -4.89, 8.91)
CIE-LCHlch(33.23, 10.16, 118.77°)
OKLaboklab(42.26% -0.0126 0.0229)
OKLCHoklch(42.26% 0.026 118.9)
XYZxyz(6.7745, 7.6440, 5.9680)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C5040 #444050
analogous
#504C40 #4C5040 #445040
triadic
#4C5040 #404C50 #50404C
tetradic
#4C5040 #40504C #444050 #504044
square
#4C5040 #40504C #444050 #504044
split-complementary
#4C5040 #404450 #4C4050
monochromatic
#10110E #2C2E25 #4C5040 #6C725B #8C9378

Accessibility & contrast

On white

8.30
#4C5040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4C5040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C5040
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C5040#FFFFFF#000000##FFFFFF
##4C50401.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524E3F
Deuteranopia (green-blind)
#524E41
Tritanopia (blue-blind)
#4E4E4C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4c5040;
/* rgb */ color: rgb(76, 80, 64);
/* oklch */ color: oklch(42.3% 0.026 118.9);
Tailwind
colors: {
  custom: {
    50: '#7e8174',
    500: '#4c5040',
    950: '#000000',
  },
}
SCSS
$custom: #4c5040;
$custom-light: #7e8174;
$custom-dark: #000000;
JSON
{
  "hex": "#4c5040",
  "rgb": {
    "r": 76,
    "g": 80,
    "b": 64
  },
  "hsl": {
    "h": 75,
    "s": 11.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.42264,
    "c": 0.02612,
    "h": 118.9
  },
  "luminance": 0.07644
}

Semantic roles & 50–950 ramp

primary
#4C5040
secondary
#716D7F
accent
#74B484
background
#F7F7F7
surface
#EEEEED
border
#C9C9C8
text
#090A08
muted
#7B7C7B

Preview Lab

Preview with #4C5040

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

Preview Lab → · Contrast checker → · Palette generator →

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