LOS ANGELES — Daniel Dae Kim says his decision to leave “Hawaii Five-O” stemmed from a contract dispute.

In a Facebook post, the actor said he and CBS were unable to agree on contract terms, so he made the “difficult choice” to exit the series.

Kim said the “path to equality is rarely easy,” without elaborating.

Kim played Chin Ho Kelly on the rebooted crime drama that will start its eighth year.

In his post, Kim said as an Asian-American actor he knows first-hand how difficult it is to find opportunities, especially well-developed characters like Chin Ho.

He’s looking at other acting projects, he said, and is producing ABC’s upcoming series, “The Good Doctor.”