JPEG can represent "X" number of colours, but the human eye can detect Y>X colours. JPEG-XL can represent >X colours (but not as many as they human eye, Y):
JXL can do more colors than the human eye can perceive. Some chunks are out of range when using current standards, but it can do other chunks at 100000x the color resolution your eye can detect.