For a real algebraic link in \(RP^3\), we prove that its encomplexed writhe (an invariant introduced by Viro) is maximal for a given degree and genus if and only if its self-linking number with respect to the framing by the osculating planes is maximal for a given degree.