You can use the formula at any temperature, but you cannot use the ΔG° value from one temperature to calculate K at a different temperature, because ΔG° varies with temperature, according to ΔG° = ΔH° - TΔS°. ΔH° and ΔS° are, to a first approximation, invariant with temperature, but obviously ΔG° is not. You must calculate it at the desired temperature in order to use the equation for K.
To clarify (in case this was the problem): ΔG° refers to standard states at a specified temperature, which may be anything - not some universal "standard temperature" such as 273K. So ΔG°(298K) means standard states at 298 K, ΔG°(308K) means standard states at 308 K, etc. - and their values will be different. You need to use the value appropriate to the temperature for which you want to determine K. 27.12 kJ/mol is the value of ΔG°(298K) (not 273K) and you cannot use it to calculate K at 308K.