Free tool · Color palettes · Runs in your browser
Color palette for white
Short answer
White is #FFFFFF: the CSS color named white, defined by the W3C, written rgb(255, 255, 255) or hsl(0, 0%, 100%).
#FFFFFF · rgb(255, 255, 255) · hsl(0, 0%, 100%) · contrast 1.00:1 on white, 21.00:1 on black
Complementary
Analogous
Triadic
Split complementary
Tetradic (rectangle)
Square
Tints (toward white)
Shades (toward black)
CSS variables for the analogous palette
:root {
--color-1: #ffffff;
--color-2: #ffffff;
--color-3: #ffffff;
}Nothing is uploaded. Click a color to copy its hex code.
Key takeaways
- White is #FFFFFF, rgb(255, 255, 255), hsl(0, 0%, 100%), CIELAB 100.0, -0.0, 0.0.
- Contrast: 1.0:1 on white and 21.0:1 on black. Black text on white passes the WCAG AA minimum of 4.5:1.
- Its complement is #FFFFFF; the analogous colors are #FFFFFF and #FFFFFF; the triad is #FFFFFF, #FFFFFF, #FFFFFF.
- 0 of the 9 tints and 4 of the 9 shades have at least 4.5:1 on a white background; the first shade that does is #666666.
- Photographs rich in white gave #DCDAD9, #D3D3D4, #D2CFCD, #E2E1E4, #EBEAEB, #F4F3F4; the nearest of their colors to #FFFFFF was 5.2 CIEDE2000 units away.
- For people with deuteranopia the closest pair in the triad is 0.0 apart, against 0.0 for typical vision.
Measured: a palette for white, from photographs
Its complement is #FFFFFF; analogous colors are #FFFFFF and #FFFFFF; a triad adds #FFFFFF and #FFFFFF. On white it has a contrast ratio of 1.0:1 (fails the WCAG AA minimum of 4.5:1 for normal text) and on black 21.0:1. A palette extracted from three photographs rich in white (41%, 20% and 18% of their pixels near the hue) came out as #DCDAD9, #D3D3D4, #D2CFCD, #E2E1E4, #EBEAEB, #F4F3F4.
We searched Wikimedia Commons for white subjects and kept photographs under Creative Commons or public domain licenses. Of 30 candidates we kept the three with the largest share of pixels that are nearly white. The tool's own palette code (k-means in CIELAB, no random numbers) found five colors in each photograph. The six colors in the table below come from only the pixels inside the color window, from the three photographs, so they are six shades and neighbors of white rather than the whole picture.
| Color | Share | Nearest CSS name | Contrast on white | Contrast on black |
|---|---|---|---|---|
| #DCDAD9 | 27.4% | near gainsboro | 1.39:1 | 15.07:1 |
| #D3D3D4 | 25.2% | near lightgray | 1.50:1 | 14.04:1 |
| #D2CFCD | 18.7% | near lightgray | 1.55:1 | 13.55:1 |
| #E2E1E4 | 12.9% | near gainsboro | 1.30:1 | 16.12:1 |
| #EBEAEB | 9.2% | near whitesmoke | 1.20:1 | 17.50:1 |
| #F4F3F4 | 6.5% | near whitesmoke | 1.11:1 | 18.97:1 |
White appears here as near gainsboro, near lightgray, near lightgray, near gainsboro, near whitesmoke, near whitesmoke. The photo palette is a starting point: colors from a photograph are rarely pure, and the table shows how each performs as text on white and black.
Measured: the photographs
| Photograph | Photographer, license | Pixels near the hue | Five colors |
|---|---|---|---|
| Marble Kymi Euboea Greece | Jebulon, CC0 | 41% | #D1CECC 34%, #C5C1BE 26%, #DEDBD9 20%, #B8B2AD 16%, #A39D98 5% |
| White calcitic marble (Yule Marble, Middle | James St. John, CC BY 2.0 | 20% | #DBDCDF 31%, #B1B5B4 27%, #8A9185 25%, #0C0C12 12%, #626457 6% |
| White calcitic marble (Yule Marble, Middle | James St. John, CC BY 2.0 | 18% | #8E8C8D 30%, #706863 27%, #E7E6E6 21%, #B6B4B5 20%, #241D1D 2% |
The photographs are credited with their Wikimedia Commons license. The extracted lists are the exact tool output.
Colors that go with white
| Harmony | Colors | Closest pair, typical vision | Protanopia | Deuteranopia | Tritanopia |
|---|---|---|---|---|---|
| Complementary | #FFFFFF, #FFFFFF | 0.0 | 0.0 | 0.0 | 0.0 |
| Analogous | #FFFFFF, #FFFFFF, #FFFFFF | 0.0 | 0.0 | 0.0 | 0.0 |
| Triadic | #FFFFFF, #FFFFFF, #FFFFFF | 0.0 | 0.0 | 0.0 | 0.0 |
| Split complementary | #FFFFFF, #FFFFFF, #FFFFFF | 0.0 | 0.0 | 0.0 | 0.0 |
| Tetradic (rectangle) | #FFFFFF, #FFFFFF, #FFFFFF, #FFFFFF | 0.0 | 0.0 | 0.0 | 0.0 |
| Square | #FFFFFF, #FFFFFF, #FFFFFF, #FFFFFF | 0.0 | 0.0 | 0.0 | 0.0 |
The complement, #FFFFFF, sits opposite #FFFFFF on the color wheel (hue + 180 degrees); Wikipedia's color scheme article describes analogous schemes as neighbors on the wheel and a triadic scheme as colors 120 and 240 degrees apart. Under protanopia, deuteranopia and tritanopia the colors are simulated with the Machado model at full severity; a closest pair below about 10 is hard to tell apart.
White in numbers
| Notation | Value |
|---|---|
| Hex | #FFFFFF |
| RGB | rgb(255, 255, 255) |
| HSL | hsl(0.0, 0.0%, 100.0%) |
| CMYK (simple conversion) | 0%, 0%, 0%, 0% |
| CIELAB (D65) | 100.0, -0.0, 0.0 |
| Nearest CSS color name | white #FFFFFF (exact) |
| Contrast on white | 1.00:1 |
| Contrast on black | 21.00:1 |
Tints, shades and accessible text
| Step | Tint (toward white) | Contrast on white | Shade (toward black) | Contrast on white |
|---|---|---|---|---|
| 10% | #FFFFFF | 1.00:1 | #E6E6E6 | 1.25:1 |
| 20% | #FFFFFF | 1.00:1 | #CCCCCC | 1.61:1 |
| 30% | #FFFFFF | 1.00:1 | #B3B3B3 | 2.10:1 |
| 40% | #FFFFFF | 1.00:1 | #999999 | 2.85:1 |
| 50% | #FFFFFF | 1.00:1 | #808080 | 3.95:1 |
| 60% | #FFFFFF | 1.00:1 | #666666 | 5.74:1 |
| 70% | #FFFFFF | 1.00:1 | #4D4D4D | 8.45:1 |
| 80% | #FFFFFF | 1.00:1 | #333333 | 12.63:1 |
| 90% | #FFFFFF | 1.00:1 | #1A1A1A | 17.40:1 |
0 tints and 4 shades reach 4.5:1 against white. The WCAG success criterion 1.4.3 asks for at least 4.5:1 for normal text and 3:1 for large text; criterion 1.4.6 asks for 7:1 for the enhanced level.
Use it in CSS
:root { --white-1: #dcdad9; --white-2: #d3d3d4; --white-3: #d2cfcd; --white-4: #e2e1e4; --white-5: #ebeaeb; --white-6: #f4f3f4; }
The complement and analogous colors of #FFFFFF: #FFFFFF, #FFFFFF, #FFFFFF.
Free tools:Color palette generatorPalette from an imageImage to textCompress an image
Check the contrast before you use it for text
- White #FFFFFF on white: 1.00:1; on black: 21.00:1.
- The darkest shade in the table, #1A1A1A, reaches 17.40:1 on white.
- Large text (at least 18 point, or 14 point bold) needs 3:1; normal text needs 4.5:1; the enhanced level needs 7:1.
- Do not use color as the only way to tell things apart: about 1 in 12 men have a color vision deficiency.
How the numbers were made
The hex value of white is the W3C CSS named color. Harmonies rotate the hue in HSL and keep saturation and lightness. Contrast follows the WCAG 2 definition with relative luminance. Color differences use CIEDE2000, which Wikipedia notes is designed so that a difference of 1.0 stands for a just noticeable difference. Color blindness is simulated with the matrices of Machado, Oliveira and Fernandes (2009) at severity 1.0. Palette extraction: pixels are grouped into 32 levels per channel and clustered with k-means in CIELAB; the same picture always gives the same palette. The accuracy test on pictures of known colors is on the palette generator page.
Questions people ask
What is the hex code for white?
White is #FFFFFF (the W3C CSS named color), rgb(255, 255, 255).
What color goes with white?
The complement of #FFFFFF is #FFFFFF. Analogous colors are #FFFFFF and #FFFFFF; a triad is #FFFFFF, #FFFFFF, #FFFFFF.
Is #FFFFFF accessible for text?
On white it has 1.00:1 and on black 21.00:1. The WCAG AA minimum for normal text is 4.5:1, so black text on #FFFFFF passes.
Can people with color blindness tell the white palette apart?
For the six colors of the photo palette, the closest pair is 1.9 apart for typical vision and 1.9 for deuteranopia (CIEDE2000; below about 10 is hard).
How was the palette made?
The tool found the dominant colors of the photographs with k-means clustering in CIELAB. It runs in your browser; you can do the same with your own picture on the palette from image page.
Can I use these colors commercially?
Colors themselves are not licensed. The photographs used to find them keep their Creative Commons licenses, shown in the table.
Can I get a palette from my own photo?
Yes. Use the palette from an image tool; nothing is uploaded.
How many colors should a palette have?
Many designs use five: one dominant, one or two supporting, one accent and a neutral. The tool lets you choose 3 to 10 when you extract from a picture.
What is the difference between tints and shades?
A tint mixes the color with white and a shade mixes it with black. The table shows nine of each in steps of 10%.
Related
Sources and how we checked
- W3C: CSS Color Module Level 4 (named colors) (read 2026-10-10)
- W3C: Understanding Success Criterion 1.4.3, Contrast (Minimum) (read 2026-10-10)
- W3C: Understanding Success Criterion 1.4.6, Contrast (Enhanced) (read 2026-10-10)
- Wikipedia: Color scheme (read 2026-10-10)
- Wikipedia: Color difference (CIEDE2000) (read 2026-10-10)
- Machado, Oliveira and Fernandes: A physiologically-based model for simulation of color vision deficiency (2009) (read 2026-10-10)
- Wikimedia Commons (the photographs, under the licenses shown) (read 2026-10-10)
Reviewed October 10, 2026. The palettes were found with the tool's own code from Creative Commons photographs; contrast, harmonies and color differences are computed. The files and results are in data/seo/hub/evidence/2026-10-10/palette.