Home / Colors / White hex code

White hex code

All three channels at full strength: the brightest color a screen can show.

#FFFFFF White
HEX#FFFFFF
RGBrgb(255, 255, 255)
HSLhsl(0, 0%, 100%)
HSVhsv(0, 0%, 100%)
CMYKcmyk(0%, 0%, 0%, 0%)
Advertisement

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

1.00:1 · Fails for text

Black text

21.00:1 · Passes AAA for all 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%);
}
Advertisement

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

See all popular colors · All HTML color names · Open white in the color picker

Advertisement