Use getUIMin/Max only for Lab and RGB
(cherry picked from commit c4ce32ecbae820ea1e7b1415543829105e98c06f)