Updated Patch display color to use luminance for foreground color calculation