Yellow

#afafa2

Hex, rgb, cmyk and Pantone values for yellow, with shades, tints, matching colors and free print quality patterns.

Yellow is a mid yellow, confident at this saturation. A yellow this strong grabs attention fast, good for warnings and energy brands. Charcoal and navy give it the contrast it needs and purple across the wheel makes it pop.

Yellow color values

Every conversion for #afafa2, ready to copy. Hex, rgb, hsl, hsv, cmyk, cie-lab, xyz, decimal, web safe and the nearest Pantone.

Hex#afafa2
RGB175, 175, 162
HSL60, 8%, 66%
HSV60, 7%, 69%
CMYK0%, 0%, 7%, 31%
Lab71.13, -2.35, 6.66
XYZ39.53, 42.38, 40.28
Decimal11513762
Web safe#999999
Pantone414 C
Pantone414 CHex#afafa2Rgb175 175 162Cmyk0 0 7 31Lab71 -2 7Darker#68685aDeep#8e8e7cLighter#d0d0c9

Shades of yellow

Tints of yellow

Colors that go with yellow

Yellow in print

The cmyk build is well inside gamut, so what you see on screen is close to what prints. The cmyk build is 0, 0, 7, 31.

The same color needs a different cmyk build depending on the paper. Here is #afafa2 on both.

Coated stockgloss or silk, C
0 0 7 31
Ink sits on the surface, so colors stay bright and close to screen.
Uncoated stocknatural or matte, U
4 4 10 37
The stock absorbs ink and gains dot, so it needs a heavier build and reads a touch softer.

This color converts to cmyk comfortably and should hold on press.

See how it converts in the rgb to cmyk converter, or readrgb vs cmyk for print andwhat the k in cmyk means.

Yellow in css

Copy #afafa2 straight into your stylesheet.

.background { background-color: #afafa2; }
.text { color: #afafa2; }
.border { border: 2px solid #afafa2; }

How yellow looks on light and dark

Yellow and accessibility

Contrast ratios for #afafa2 against black and white text, measured to the WCAG standard.

Textwhite text on this color
2.22:1
AAfail · AA largefail · AAAfail
Textblack text on this color
9.48:1
AApass · AA largepass · AAApass

Use black text on this color for readable body copy. To test #afafa2 against any other color, not just black and white, run the pair through ourcontrast checker for a live WCAG reading.

Yellow on a business card, sticker and pattern

A quick look at how #afafa2 sits on real print products. Start any of these in the maker.

Your nameFounderhello@brand.comBusiness card
Sticker
Repeat pattern

Building a full palette around yellow? Pull matching colors from any photo with thecolor palette generator, or check a design for print with thergb to cmyk converter.

Turn yellow into a seamless pattern

Four patterns built from #afafa2 and its shades, free at print quality. Click any one to keep editing in the pattern maker.

Make posters, wallpaper and packaging art from yellow, free and print ready.

Open in pattern maker

How we calculate these values

The figures for #afafa2 come from standard color math, shown so you can check them. Rgb, hsl, hsv, lab and xyz are derived through the usual sRGB conversion formulas. The coated and uncoated cmyk builds differ because uncoated stock absorbs more ink and gains dot, so the same color needs a heavier, slightly duller build on press. The Pantone value is the closest reference by perceptual color distance and should be treated as a starting point, not a guaranteed match.