On this page
That makes white easy to write and surprisingly easy to misuse. Below you will find every format, the off-whites designers reach for instead, contrast ratios I calculated, and what changes when white moves from a screen to paper.
White Hex Code, RGB, HSL and CMYK Values
A hex code is three numbers in shorthand. Each pair of characters is one channel, and FF is 255 in decimal, the highest a channel can go. So means 255 red, 255 green and 255 blue, and it can also be written as #FFF.
| Format | White value |
|---|---|
| HEX | (short: #FFF) |
| RGB | rgb(255, 255, 255) |
| RGB percent | rgb(100%, 100%, 100%) |
| HSL | hsl(0, 0%, 100%) |
| HSV / HSB | 0°, 0%, 100% |
| CMYK | 0%, 0%, 0%, 0% |
| CSS keyword | white |
HSL needs one note. At 100% lightness, hue and saturation stop mattering, so the 0 and 0% in hsl(0, 0%, 100%) are placeholders. Any hue at full lightness gives the same white.
Why White Is Full Light on Screen but No Ink in Print
Screens mix light, so pushing every channel to maximum gives white. Print works the other way. Inks absorb light, and CMYK 0, 0, 0, 0 means no ink is laid down at all. In print, white is not a color you apply. It is the paper showing through. The nearest Pantone reference is usually given as Bright White 11-0601 TCX, and that match is approximate.
Even on screen, is not one fixed sensation. The sRGB standard places its white point at about 6500 K, but your monitor’s brightness, calibration and night mode all shift what you actually see. Two people can look at the same code and see a slightly bluer or warmer white.
How to Write White in CSS and Design Tools
Every line below produces exactly the same color, so use whichever suits your codebase.
Which CSS value gives exactly the same color as #FFFFFF?
At 100% lightness every hue and saturation resolves to pure white, while the other two give black and yellow.
.surface {
background: #ffffff;
background: #fff;
background: white;
background: rgb(255 255 255);
background: hsl(0 0% 100%);
background: oklch(1 0 0);
}
.overlay {
background: rgb(255 255 255 / 0.6); /* 60% white */
background: #ffffff99; /* same, 8-digit hex */
}
For overlays on photos, use transparency instead of picking a gray. In a design system, store white once as a token such as --color-white and reference it everywhere. If you later decide that pure white is too stark, the swap becomes a one-line change.
Pure White vs Off-White: Which White Should You Pick?
Pure white is achromatic: its three channels are exactly equal. Off-white is not a single color but a family where the channels sit slightly apart, adding a faint warm, cool or pink lean. No standard defines one official off-white code, but CSS names several that are worth knowing:
- Snow : a trace of pink, closest to pure white
- Ivory : a hint of yellow, warm and clean
- Ghost White : faintly blue, crisp and cool
- White Smoke : neutral and slightly gray, good for page backgrounds
- Floral White : soft cream warmth
- Seashell : peachy and blush-leaning
Pure white suits product photos, UI cards and anything that must read as neutral and clean. For wide reading areas a softer white often feels kinder. The warm side is covered in depth on the warm white page, and the blush side continues on pastel pink.

White Contrast and WCAG Ratios You Can Rely On
WCAG contrast compares relative luminance, and white has the maximum value of 1. The ratio is 1.05 divided by (L + 0.05), where L is the luminance of the other color. Against black that gives 21:1, the highest score possible. WCAG asks for 4.5:1 for normal text, 3:1 for large text and interface components, and 7:1 for the stricter AAA level.
Here is how white scores against common grays:
- White and : about 7:1, passes AAA
- White and : about 4.5:1, the lightest gray that passes AA for body text
- White and : about 3:1, acceptable for large text and icons only
- White and : about 2.3:1, fails every level
I met that last one on a client checkout page. The field labels looked elegant on my calibrated monitor and nearly vanished on a phone outdoors. Darkening them to passed AA, and the page still felt light.
Using White in Web and App Design
Pure white is the default surface in most interfaces, and it works best when used on purpose. A common pattern is a page background of with white cards on top. The catch is that white against measures only about 1.09:1, so the card edge is nearly invisible until you add a 1px border or a soft shadow.
Your white card sits on a #F5F5F5 page and barely stands out. What is the best fix?
White against #F5F5F5 has a contrast of only about 1.09:1, so the edge needs help from a border or shadow.
Dark mode flips the problem. Pure white text on pure black can shimmer and tire the eyes, so I usually soften body text to and keep full white for headings and key icons. For white text on a brand-colored button, test the pairing against 4.5:1 rather than trusting your eye.
Try this: Set your page background to and your cards to . Toggle a 1px border on and off, and notice which version lets you scan the cards faster.
White in Branding, Interiors and Fashion
In branding, white rarely works alone. It is the space around a logo, the knockout letter on a dark mark, the calm that lets one accent speak. Still, write it into your guidelines: list the exact hex for screens and the paper stock for print, so “white” means the same thing on the website and on the packaging.
Interiors and fashion treat white differently from screens. No paint is truly , since every can carries a trace of pigment and reads cooler in north light and warmer under evening bulbs. Bright white fabric is often finished with optical brighteners, which is why a white shirt can glow under UV light. Painters lighten colors with titanium white, a very opaque pigment.
A swatch on a monitor only tells you the direction. Test a real sample on your wall at morning and at night before you commit.
Printing White: Paper, Proofs and Spot White Ink
Because CMYK white is simply unprinted paper, the paper decides what white looks like. On one stationery project, the logo sat on uncoated cream stock while the website beside it was pure . The proof looked dingy next to the screen version until we moved to a brighter sheet. Always ask for a physical proof on the real stock.
Need white on a colored or clear surface? Screen printing, some digital presses and packaging printers can lay down opaque white ink as a spot color. You normally supply it as a separate layer or swatch named “White,” and the printer maps it to the ink. Automatic RGB to CMYK conversion is approximate, so convert with the printer’s own profile instead of a default one.
Colors That Go With White and How to Test Them
Because white has no hue, hue-based rules like analogous or triadic have nothing to rotate, so the schemes the palette maker above builds from it are mostly neutrals. The more useful method is to choose the accent first and let white supply the space around it.
Strong partners include dark green for a grounded, natural feel, dark gold for warmth, peacock blue for a saturated jewel accent, and silver gray for a soft, modern neutral stack. Keep white at roughly two thirds of the layout, then use one accent and one dark neutral for text.
Ready-to-Use White Palettes
Each palette below keeps as the surface, adds a quiet off-white or light neutral for layering, and finishes with an accent and a dark color for text. Copy the codes straight into your design tool.
SaaS dashboards, settings screens and docs that need calm contrast.
Portfolios, interiors and editorial layouts with a warm, quiet mood.
Wellness brands, skincare packaging and light, natural-looking websites.
Winter campaigns, finance apps and cool, trustworthy blue-led interfaces.
Check text pairs before shipping. The darkest color in each set passes easily on white, but the mid tones are best kept for large text, borders and icons.
White in Flags and Team Colors
White is one of the most common colors on national flags, from the plain field of Japan’s flag to the white ground of Finland’s blue cross. Official specifications vary. Some governments publish Pantone or RGB values, while others describe the color only in words, so use the issuing authority’s own document when you need an exact match.

In sports, white is the classic road or away color. The Minnesota Vikings pair their purple and gold with white on road uniforms, and the full set of team codes is on the Minnesota Vikings colors page. When a style guide says “white,” it almost always means pure on screen and unprinted paper or white ink in print.
Colors close to white
White Color: questions people ask
What is the hex code for white?
The hex code for white is #FFFFFF, or #FFF in short form. It means red, green and blue are all at their maximum value of 255.
What are the RGB, HSL and CMYK values of white?
White is rgb(255, 255, 255) and hsl(0, 0%, 100%). In CMYK it is 0%, 0%, 0%, 0%, which means no ink, so the paper shows through.
What is the difference between white and off-white?
Pure white has three identical channels and no tint. Off-white is any white with a slight warm, cool or pink lean, such as ivory #FFFFF0, snow #FFFAFA or ghost white #F8F8FF.
Is #FFFFFF the same as white in CSS?
Yes. The keyword white, #FFF, #FFFFFF, rgb(255 255 255) and hsl(0 0% 100%) all produce the identical color.
Is pure white a good website background?
It is fine and very common, and it gives the highest possible contrast for dark text. For long reading, many designers soften it with an off-white such as #FAF9F6 or #F5F5F5 to reduce glare.
Keep exploring
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes
- Lavender Color: Hex Code, RGB and Palettes
- Mint Green Color: Hex Code, RGB and Palettes
- Cream Color: Hex Code, RGB and Palettes
- Azure Blue Color: Hex Code, RGB and Palettes
- Pink and Purple Color Combination: Palettes and Hex Codes
- Skin Tone Hex Codes: Realistic Skin Color Palettes