#4C7112#4C7112

#4C7112 is a mid, vivid yellow-green. Relative luminance 0.134; OKLCH L 50.2% C 0.126 H 129.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#4C7112
RGBrgb(76, 113, 18)
HSLhsl(83, 73%, 26%)
HSVhsv(83, 84%, 44%)
CMYKcmyk(32.7%, 0%, 84.1%, 55.7%)
CIE-LABlab(43.35, -27.95, 44.12)
CIE-LCHlch(43.35, 52.23, 122.35°)
OKLaboklab(50.22% -0.08 0.0969)
OKLCHoklch(50.22% 0.126 129.5)
XYZxyz(8.9948, 13.3901, 2.6828)
Luminance0.1339 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7112 #371271
analogous
#716612 #4C7112 #1D7112
triadic
#4C7112 #124C71 #71124C
tetradic
#4C7112 #127166 #371271 #71121D
square
#4C7112 #127166 #371271 #71121D
split-complementary
#4C7112 #121D71 #661271
monochromatic
#121A04 #283C0A #4C7112 #70A61A #93DB23

Accessibility & contrast

On white

5.71
#4C7112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#4C7112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7112
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7112#FFFFFF#000000##FFFFFF
##4C71121.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#72661D
Tritanopia (blue-blind)
#4E6C60
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4c7112;
/* rgb */ color: rgb(76, 113, 18);
/* oklch */ color: oklch(50.2% 0.126 129.5);
Tailwind
colors: {
  custom: {
    50: '#829a5a',
    500: '#4c7112',
    950: '#000000',
  },
}
SCSS
$custom: #4c7112;
$custom-light: #829a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7112",
  "rgb": {
    "r": 76,
    "g": 113,
    "b": 18
  },
  "hsl": {
    "h": 83.368,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.5022,
    "c": 0.12565,
    "h": 129.5
  },
  "luminance": 0.1339
}

Semantic roles & 50–950 ramp

primary
#4C7112
secondary
#6337A8
accent
#39EF80
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7112

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

Preview Lab → · Contrast checker → · Palette generator →

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