Unable to use custom aggregation field in color field of scatter plots

I am using two custom calculated fields (percentile rank) in X-axis and Y-axis of quicksight scatter plots. I need to use a calculated field in color field , but getting “Custom aggregation field is not allowed as a dimension”

Can somebody please help here ?

What is the definition of the color field?

Color which is one of the field wells present for scatter plots.