Diameter $AB$ of a circle has a length that, written in base eight, is a $2$-digit number. Reversing its two base-eight digits gives the length of the perpendicular chord $CD$. The distance from their intersection point $H$ to the center $O$ is a positive rational number. Determine the length of $AB$, written in base ten.