#4F7C1F#4F7C1F

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

Color values

HEX#4F7C1F
RGBrgb(79, 124, 31)
HSLhsl(89, 60%, 30%)
HSVhsv(89, 75%, 49%)
CMYKcmyk(36.3%, 0%, 75%, 51.4%)
CIE-LABlab(47.20, -31.16, 43.30)
CIE-LCHlch(47.20, 53.35, 125.74°)
OKLaboklab(53.44% -0.0879 0.0973)
OKLCHoklch(53.44% 0.131 132.1)
XYZxyz(10.6793, 16.1761, 3.8557)
Luminance0.1618 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7C1F #4C1F7C
analogous
#7C7A1F #4F7C1F #217C1F
triadic
#4F7C1F #1F4F7C #7C1F4F
tetradic
#4F7C1F #1F7C7A #4C1F7C #7C1F21
square
#4F7C1F #1F7C7A #4C1F7C #7C1F21
split-complementary
#4F7C1F #1F217C #7A1F7C
monochromatic
#111A07 #304B13 #4F7C1F #6EAD2B #8DD045

Accessibility & contrast

On white

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

On black

4.24
#4F7C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4F7C1F#FFFFFF#000000##FFFFFF
##4F7C1F1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#7B6F28
Tritanopia (blue-blind)
#50776A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4f7c1f;
/* rgb */ color: rgb(79, 124, 31);
/* oklch */ color: oklch(53.4% 0.131 132.1);
Tailwind
colors: {
  custom: {
    50: '#84a261',
    500: '#4f7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #4f7c1f;
$custom-light: #84a261;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7c1f",
  "rgb": {
    "r": 79,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 89.032,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53438,
    "c": 0.1311,
    "h": 132.1
  },
  "luminance": 0.16176
}

Semantic roles & 50–950 ramp

primary
#4F7C1F
secondary
#7A48AF
accent
#45E391
background
#F8FAF6
surface
#EFF3EB
border
#CACDC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4F7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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