Mistake 1: shorthand expands unexpectedly
A 3-digit HEX code doubles each digit, so #abc becomes #aabbcc, not #abcabc. If you type a shorthand code and the color looks wrong, check the expansion first, because the doubled digits change the color more than most people expect.
Each digit in #abc is copied once, giving #aa for red, #bb for green, and #cc for blue. That means shorthand can only express 4,096 colors, while 6-digit HEX can express 16,777,216 colors, so most colors have no shorthand form at all. A shorthand code is fine when you write it on purpose, but a pasted code that loses digits will silently change color, so always check the full 6-digit form before you ship it.
Shorthand expander
As typed: #abc
As expanded: #AABBCC
Shorthand expresses 4,096 colors. Full 6-digit HEX expresses 16,777,216 colors — 4,096 times as many.
Mistake 2: same HSL lightness, different brightness
Two colors with the same HSL lightness can look very different in brightness, so never trust lightness alone. A yellow and a blue both set to 50% lightness do not look equally bright: the yellow looks much brighter than the blue, because HSL lightness is a formula, not what your eye sees.
HSL lightness averages the brightest and darkest channels, so it treats every hue the same. Human eyes are far more sensitive to yellow-green light than to blue light, so the yellow jumps out while the blue looks dark. The fix is to judge brightness by eye or by OKLCH lightness, which tracks what people actually see, and to test text pairs with the Contrast Checker instead of matching HSL lightness numbers.
Yellow vs blue at 50% lightness
Yellow — HSL lightness 50%
Blue — HSL lightness 50%
Both start at 50%. Drag the sliders until the two look equally bright — the readout shows how far apart the lightness values had to move.
Mistake 3: the color looks different in the browser than in the design file
A color can look different in the browser than in the design file because the two use different color profiles. A design file may use Display P3 or another wide profile, while the browser renders the same HEX code in sRGB, so the same numbers produce a different color on screen.
HEX codes are sRGB values, so a color picked in a wide-gamut design tool may be outside sRGB and get clipped when it reaches the browser. The fix is to check the color in the browser itself, on the real page, and to set the design tool to sRGB when the site will ship in sRGB. If you need wide-gamut colors on the web, use OKLCH or Display P3 values in CSS instead of forcing a HEX code to carry a color it cannot hold.
Profile shift simulator
Design file (Display P3)
Browser (sRGB)
Mistake 4: forgetting alpha
Forgetting alpha means a color that looked solid in the picker turns see-through on the page, because its opacity was below 100%. Always check the alpha value before you copy a code, and use the 8-digit HEX form when you need transparency.
Alpha runs from 0 for fully transparent to 1 for fully solid, and an 8-digit HEX code adds it as the last two digits, so #RRGGBBAA carries the opacity with the color. A color at half opacity looks different on every background, so a swatch that looked right on white can look wrong on gray. The fix is to set opacity to 1 when you want a solid color, and to test any transparent color on its real background, not on the picker's white canvas.
Alpha checkerboard
Mistake 5: trusting CMYK from HEX exactly
A CMYK value converted from HEX is only an estimate, never an exact print color. Screens use additive RGB light and printers use subtractive CMYK ink, so no formula can map one to the other exactly. Always proof a print color on paper, never trust the converted numbers alone.
The conversion assumes a standard profile, but real printers, inks, and paper all shift the result, and some screen colors cannot be printed in CMYK at all. A bright screen blue may print dull, and a vivid screen green may print flat, because those colors sit outside the CMYK gamut. The fix is to treat converted CMYK as a starting point, ask the printer for a proof, and pick print colors from a printed swatch book when the color must match exactly.
Gamut warning map
Mistake 6: picking text color without checking contrast
Picking a text color without checking contrast is the most common accessibility mistake, and it makes text unreadable even when the colors look good together. Always measure the pair against WCAG AA: 4.5:1 for normal text and 3:1 for large text, before you ship it.
Light gray text on white is the classic failure: it looks clean and modern on a swatch, but many readers cannot read it at all. White text on a bright brand color fails just as often. The fix takes seconds: enter both HEX codes in the Contrast Checker, read the ratio and the pass or fail badges, and darken the text or lighten the background until the pair passes at the size you will use.
Contrast fail finder
The quick brown fox jumps over the lazy dog. Light gray on white looks clean — and many readers cannot read it at all.
A quick checklist so you never repeat them
Before you ship a color, check six things: the full 6-digit HEX, the real brightness, the browser rendering, the alpha value, the print proof, and the contrast ratio. Six checks take a minute and catch all six mistakes in this article. Make them a habit and the mistakes stop happening.
The checklist is: expand any shorthand and read the full code, compare brightness by eye or with OKLCH instead of HSL lightness, view the color in the browser on the real page, confirm alpha is 1 unless you want transparency, treat CMYK as an estimate and proof it on paper, and measure every text pair in the Contrast Checker. Save the checklist with your palette so every new color on the site gets the same six checks.
Next, read How to Find the HEX Code of a Color in an Image.
Six-point checklist
0 of 6 done.