#4F7E2F#4F7E2F

#4F7E2F is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.1% C 0.121 H 134.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#4F7E2F
RGBrgb(79, 126, 47)
HSLhsl(96, 46%, 34%)
HSVhsv(96, 63%, 49%)
CMYKcmyk(37.3%, 0%, 62.7%, 50.6%)
CIE-LABlab(47.99, -30.71, 37.13)
CIE-LCHlch(47.99, 48.19, 129.60°)
OKLaboklab(54.12% -0.0853 0.0865)
OKLCHoklch(54.12% 0.121 134.6)
XYZxyz(11.1982, 16.7887, 5.3393)
Luminance0.1679 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7E2F #5E2F7E
analogous
#777E2F #4F7E2F #2F7E37
triadic
#4F7E2F #2F4F7E #7E2F4F
tetradic
#4F7E2F #2F777E #5E2F7E #7E372F
square
#4F7E2F #2F777E #5E2F7E #7E372F
split-complementary
#4F7E2F #372F7E #7E2F77
monochromatic
#17250E #33511E #4F7E2F #6BAB40 #8AC563

Accessibility & contrast

On white

4.82
#4F7E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#4F7E2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7E2F
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7E2F#FFFFFF#000000##FFFFFF
##4F7E2F1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837426
Deuteranopia (green-blind)
#7C7035
Tritanopia (blue-blind)
#4E796D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4f7e2f;
/* rgb */ color: rgb(79, 126, 47);
/* oklch */ color: oklch(54.1% 0.121 134.6);
Tailwind
colors: {
  custom: {
    50: '#84a46b',
    500: '#4f7e2f',
    950: '#000000',
  },
}
SCSS
$custom: #4f7e2f;
$custom-light: #84a46b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7e2f",
  "rgb": {
    "r": 79,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 95.696,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54124,
    "c": 0.12148,
    "h": 134.6
  },
  "luminance": 0.16789
}

Semantic roles & 50–950 ramp

primary
#4F7E2F
secondary
#8C5DAC
accent
#52D5A0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #4F7E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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