跳到主要内容

Color to Grayscale Calculator

R
G
B
A

Original Color

HEX
#F6AD55
RGB
rgb(246, 173, 85)
HSL
hsl(32.80000000000001, 89.9%, 64.9%)

Grayscale Conversion

HEX
#B9B9B9
RGB
rgb(185, 185, 185)
Grayscale Value
185

Grayscale Conversion Formula
Approximate Conversion

Grayscale = R × 0.3 + G × 0.59 + B × 0.11

246 × 0.3 = 73.8
+
173 × 0.59 = 102.07
+
85 × 0.11 = 9.35
=
185

Red Component

73.8

30% Weight

Green Component

102.07

59% Weight

Blue Component

9.35

11% Weight

Quick Preset Colors

Select preset colors to quickly view grayscale conversion effects

Contrast Analysis

Analyze contrast between original and grayscale colors with white background

Quick Compare
Original Color
vs
Grayscale Color

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.