About white
All three channels at full strength: the brightest color a screen can show. Its hex code is #FFFFFF, which is rgb(255, 255, 255): 255 red, 255 green and 255 blue on a scale of 0 to 255.
White is a neutral color, so it pairs easily with almost anything.
White tints and shades
Lighter tints (mixed with white) and darker shades (mixed with black) of white. Click any of them to copy its hex code.
Colors that go with white
Because white is a neutral, it works with nearly any color. Bold accents stand out against it, and the tints and shades above give you a matching set of grays.
Popular accents
Text on white
White text
Black text
For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). Black text is the better choice on white. Test other combinations with the contrast checker.
Using white in CSS
.element {
color: #FFFFFF;
background-color: rgb(255 255 255);
border-color: hsl(0 0% 100%);
}
Frequently asked questions
What is the hex code for white?
White is #FFFFFF. In RGB it's rgb(255, 255, 255), and in HSL it's hsl(0, 0%, 100%).
What colors go with white?
As a neutral, white goes with almost any color. White also pairs well with charcoal or black.
Is white warm or cool?
White is a neutral color, so it pairs easily with almost anything.
Should I use white or black text on white?
Use black text. Its contrast ratio on white is 21.00:1, versus 1.00:1 for white.
Similar colors
- Silver#C0C0C0rgb(192, 192, 192)
- Gray#808080rgb(128, 128, 128)
- Black#000000rgb(0, 0, 0)
- Lilac#C8A2C8rgb(200, 162, 200)
- Sage green#9CAF88rgb(156, 175, 136)
- Khaki#C3B091rgb(195, 176, 145)
See all popular colors · All HTML color names · Open white in the color picker