After UIColor is converted to cgcolor, the foregroundColor of CATextLayer is used to display the wrong color

The code below is the color I use

let color = UIColor(0x00C29AFF)

The display effect is as follows, the above Label is displayed using CATextLayer, and the following is displayed using UILabel. The color displayed by UILabel is correct, but the color displayed by CATextLayer is inconsistent with that of UILabel. How do I solve it?

After UIColor is converted to cgcolor, the foregroundColor of CATextLayer is used to display the wrong color
 
 
Q