We propose a Rayleigh Scattering and adaptive color compensation method. It capitalizes on the brightness and color differentials between the regions where DCP has failed within images for effective regional segmentation. First, we added B-channel compensation to the atmospheric illumination, made a simple evaluation of the B channel through the atmospheric illumination of the R channel and the G channel. It repeatedly iterated to obtain and repaired the atmospheric illumination of the B channel, which eliminates the color dilution. Secondly, we obtained the dark channel image and the bright channel image, and jointly evaluated the failure point of the dark channel prior method to select the area with inaccurate transmission. This can select the areas which need re-estimate the transmission. This step improves the image quality of the area and repairs the image details. Finally, we validated the effectiveness and resilience of the proposed method through comprehensive experiments. It is conducted across diverse scenarios, involving the adjustment of various parameters.