Colors Names

Field guide

Carry a color from hex to CSS and print

Work through one sRGB example, keep track of rounding, and know what to send a printer.

Read the three byte pairs

In #FF7F50 the red pair FF is 255, the green pair 7F is 127, and the blue pair 50 is 80. CSS rgb(255 127 80) gives the same opaque sRGB value as #FF7F50. The CSS keyword coral is another exact spelling of the same color.

The shorthand #F80 expands each digit twice to give #FF8800. You can shorten a six-digit code only when the two digits in each channel match. Coral needs all six.

Use HSL for adjustments

The HSL coordinates for coral are approximately 16.1143 degrees, 100% saturation and 65.6863% lightness. They describe the same sRGB color from a different angle. Moving just the hue can help you explore alternatives. Keep the original hex or full-precision channels if you need a repeatable handoff. Whole-number rounding can move the reconstructed RGB value.

HSL lightness is a geometric coordinate. At HSL lightness 50%, full-saturation yellow and blue have very different apparent brightness. Determine text contrast from relative luminance.

Read the space before the numbers

CSS hex and rgb() use sRGB. A color(display-p3 …) triple uses different primaries. Reusing its component numbers in sRGB can change the color. Moving a color outside the smaller gamut into sRGB requires a choice about how to bring it into range.

Ask for an output profile

The job specification matters for print. A printer may request particular CMYK values, a named spot ink, or an RGB file with an embedded profile. Ask which profile and substrate they use before converting. Record the original sRGB value and keep the color-managed proof with the job. A simple percentage calculation has no information about that press, ink or paper.

Convert a color

Sources