This step applies only to RGBA component groups, and only if the format is either LUMINANCE or LUMINANCE_ALPHA. A value L is computed as
where R, G, and B are the values of the R, G, and B components. The single computed L component replaces the R, G, and B components in the group.