UKismetMathLibrary::LinearColor_GetLuminance

Returns the perceived brightness of a color on a display taking into account the impact on the human eye per color channel: green > red > blue.