#4F7112#4F7112

#4F7112 is a mid, vivid yellow-green. Relative luminance 0.135; OKLCH L 50.4% C 0.124 H 128.3°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#4F7112
RGBrgb(79, 113, 18)
HSLhsl(81, 73%, 26%)
HSVhsv(81, 84%, 44%)
CMYKcmyk(30.1%, 0%, 84.1%, 55.7%)
CIE-LABlab(43.53, -26.70, 44.36)
CIE-LCHlch(43.53, 51.78, 121.05°)
OKLaboklab(50.42% -0.0768 0.0973)
OKLCHoklch(50.42% 0.124 128.3)
XYZxyz(9.2388, 13.5160, 2.6942)
Luminance0.1352 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7112 #341271
analogous
#716312 #4F7112 #1F7112
triadic
#4F7112 #124F71 #71124F
tetradic
#4F7112 #127163 #341271 #71121F
square
#4F7112 #127163 #341271 #71121F
split-complementary
#4F7112 #121F71 #631271
monochromatic
#121A04 #2A3C0A #4F7112 #74A61A #99DB23

Accessibility & contrast

On white

5.67
#4F7112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#4F7112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7112
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7112#FFFFFF#000000##FFFFFF
##4F71121.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#72661D
Tritanopia (blue-blind)
#526B60
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4f7112;
/* rgb */ color: rgb(79, 113, 18);
/* oklch */ color: oklch(50.4% 0.124 128.3);
Tailwind
colors: {
  custom: {
    50: '#849a5a',
    500: '#4f7112',
    950: '#000000',
  },
}
SCSS
$custom: #4f7112;
$custom-light: #849a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7112",
  "rgb": {
    "r": 79,
    "g": 113,
    "b": 18
  },
  "hsl": {
    "h": 81.474,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.5042,
    "c": 0.12398,
    "h": 128.3
  },
  "luminance": 0.13516
}

Semantic roles & 50–950 ramp

primary
#4F7112
secondary
#5F37A8
accent
#39EF7A
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7112

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

Preview Lab → · Contrast checker → · Palette generator →

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