White color codes
| CSS name | white |
|---|---|
| HEX | #FFFFFF |
| RGB | rgb(255, 255, 255) |
| HSL | hsl(0, 0%, 100%) |
| CMYK | cmyk(0%, 0%, 0%, 0%) |
| Decimal | 16777215 |
Shades of White (darker)
#E6E6E6 · #CCCCCC · #B3B3B3 · #999999 · #808080 · #666666 · #4D4D4D · #333333 · #1A1A1A
Tints of White (lighter)
#FFFFFF · #FFFFFF · #FFFFFF · #FFFFFF · #FFFFFF · #FFFFFF · #FFFFFF · #FFFFFF · #FFFFFF
Color harmonies
| Complementary | #FFFFFF |
|---|---|
| Triadic | #FFFFFF, #FFFFFF |
| Analogous | #FFFFFF, #FFFFFF |
Accessibility (WCAG contrast)
| White text on White | 1.00:1 · Fail |
|---|---|
| Black text on White | 21.00:1 · AAA |
Use White in code
.element {
color: white; /* or #ffffff */
background-color: rgb(255 255 255 / 0.5);
}Frequently asked questions
What is the hex code for White?
White is #FFFFFF in HEX, rgb(255, 255, 255) in RGB and hsl(0, 0%, 100%) in HSL.
Can I use "white" directly in CSS?
Yes. "white" is one of the 148 standard CSS named colors, so color: white; works in every browser.
Is White readable on white?
The contrast ratio of White on white is 1.00:1 (WCAG Fail). On black it is 21.00:1 (AAA).
What is the complementary color of White?
The complementary color (opposite on the color wheel) is #FFFFFF.
Similar colors
Snow#FFFAFAGhost White#F8F8FFMint Cream#F5FFFAAzure#F0FFFFIvory#FFFFF0Floral White#FFFAF0Alice Blue#F0F8FFWhite Smoke#F5F5F5
Convert any color with the Color Converter, generate palettes with the Random Color Generator, or browse all 148 CSS color names.