Using a sphere as a model to represent colors with the poles as maximum and minimum lightness suggests a representation something like the HSL (Hue, Saturation, Lightness) color space, where lightness varies from 0 to 1 (from the south pole to the north pole), and hue and saturation are represented as angular coordinates (like latitude and longitude on the Earth).
If we consider only the colors of equal saturation (which would correspond to some fixed "latitude"), and only vary the lightness ("longitude"), the distance between two colors of the same saturation but different lightness can be computed as the arc length along a great circle from one pole to the other.
However, this is a bit of a simplification because in a typical HSL color space, each level of lightness and saturation results in a different sized circle. Furthermore, perceptual differences between colors are better modeled by more complex color spaces designed for that purpose, like CIELAB or CIEDE2000, which account for how humans actually perceive color differences.
In the simple spherical model where the distance between two points (colors) on a sphere is measured along the surface, we can use the Haversine formula or simply calculate the arc length as a segment of a great circle if we're considering only lightness variations.
If you're exclusively considering lightness and assuming equal saturation and hue, the problem simplifies to essentially computing the distance between two points along a meridian (a line running from the north pole to the south pole).
Let (L_1) and (L_2) be the lightness values of two colors (ranging from 0 at the south pole to 1 at the north pole), we can think of these as analogous to latitudes on a sphere. The spherical distance would just be the difference in these "latitudes" multiplied by the radius of the sphere, if we measure lightness in terms of linear distance from the center of the sphere:
[ \text{Distance} = R \times \left(|L_1 - L_2|\right) ]
Where (R) is the radius of the sphere (assuming the sphere's poles represent lightness from 0 at the bottom to (R) at the top). However, if lightness is truly an angular measure from the sphere's center (e.g., 0 degrees at the south pole, 180 degrees at the north pole), we'd use:
[ \text{Distance} = \frac{\pi R}{180} \times \left(|L_1 - L_2|\right) ]
This gives the arc length rather than the linear distance between the two points of lightness on the surface of the sphere. Note that this approach ignores the complexity of color perception and should mainly be seen as an analogy.