Hey Joe,
I think you're doing everything right, that's the correct formula for determining chroma. A value of 77 would represent a very saturated color so something isn't right, are you sure that not displaying hue or something else. Is not then it might be a bug in how things are displayed.