Color to Grayscale Overview
Convert any color to its color to grayscale equivalent for desaturated preview or monochrome design while preserving perceived lightness. This calculator uses weighted luma (0.3 / 0.59 / 0.11)—not simple RGB averaging—so results track perceived lightness; see WCAG 2.2 relative luminance for the related contrast formula.
Enter a HEX, RGB, or HSL value to see the grayscale equivalent (HEX/RGB) and a side-by-side swatch for print preview, UI theming, or accessibility reference.
HEX to Grayscale Formula
For 0–255 sRGB channels, the tool computes:
L = 0.3 × R + 0.59 × G + 0.11 × B
and maps L back to a neutral gray (#RRGGBB with equal channels). This differs from HSL desaturation (setting saturation to 0), which can produce slightly different neutrals for some hues.
What is grayscale?
Grayscale (also written gray scale, or greyscale in British English—all the same term) is a color represented by a single brightness value, with equal red, green and blue channels. A grayscale image or color keeps lightness but drops hue and saturation.
To turn a color into gray, weight each channel by how bright it looks to the human eye—green appears brightest, blue darkest. This tool uses the classic luma weights:
Gray = 0.3 × R + 0.59 × G + 0.11 × B
The result (0–255) is used for all three channels, e.g. rgb(128, 128, 128). The newer Rec. 709 / WCAG relative-luminance coefficients (0.2126 / 0.7152 / 0.0722) give similar but slightly different values; a plain (R + G + B) / 3 average is less accurate for perceived brightness.