#4F7C1C#4F7C1C

#4F7C1C is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.4% C 0.133 H 131.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#4F7C1C
RGBrgb(79, 124, 28)
HSLhsl(88, 63%, 30%)
HSVhsv(88, 77%, 49%)
CMYKcmyk(36.3%, 0%, 77.4%, 51.4%)
CIE-LABlab(47.19, -31.36, 44.41)
CIE-LCHlch(47.19, 54.37, 125.23°)
OKLaboklab(53.42% -0.0887 0.0991)
OKLCHoklch(53.42% 0.133 131.8)
XYZxyz(10.6416, 16.1610, 3.6571)
Luminance0.1616 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7C1C #491C7C
analogous
#7C791C #4F7C1C #1F7C1C
triadic
#4F7C1C #1C4F7C #7C1C4F
tetradic
#4F7C1C #1C7C79 #491C7C #7C1C1F
square
#4F7C1C #1C7C79 #491C7C #7C1C1F
split-complementary
#4F7C1C #1C1F7C #791C7C
monochromatic
#101906 #2F4A11 #4F7C1C #6FAE27 #8ED43F

Accessibility & contrast

On white

4.96
#4F7C1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#4F7C1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7C1C
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7C1C#FFFFFF#000000##FFFFFF
##4F7C1C1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827207
Deuteranopia (green-blind)
#7B6F26
Tritanopia (blue-blind)
#50776A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4f7c1c;
/* rgb */ color: rgb(79, 124, 28);
/* oklch */ color: oklch(53.4% 0.133 131.8);
Tailwind
colors: {
  custom: {
    50: '#84a260',
    500: '#4f7c1c',
    950: '#000000',
  },
}
SCSS
$custom: #4f7c1c;
$custom-light: #84a260;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7c1c",
  "rgb": {
    "r": 79,
    "g": 124,
    "b": 28
  },
  "hsl": {
    "h": 88.125,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53415,
    "c": 0.13299,
    "h": 131.8
  },
  "luminance": 0.16161
}

Semantic roles & 50–950 ramp

primary
#4F7C1C
secondary
#7744B0
accent
#42E68F
background
#F8FAF5
surface
#EFF3EA
border
#CACDC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4F7C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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