White
Hex #FFFFFF, rgb(255 255 255). A white CSS named color.
Open in palette generatorWhite color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About White
White is a very light near-white with the hex code #FFFFFF. In RGB it is made of 255 red, 255 green and 255 blue; in HSL its hue is 0°, with 0% saturation and 100% lightness. Its perceptual lightness (OKLCH L) is 100.0%.
It is a CSS named color, so you can write "white" anywhere CSS accepts a color. Against white it has a contrast ratio of 1.00:1 and against black 21.00:1, so black text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
White mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
White 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with White
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Contrast and readability
WCAG 2 contrast of White with white and black. The readable text color on White is black.
On white1.00:1
- AA fail
- AA Large fail
- AAA fail
- UI 3:1 fail
APCA Lc 0
On black21.00:1
- AA pass
- AA Large pass
- AAA pass
- UI 3:1 pass
APCA Lc -108
Test any pair in the contrast checker.
Color blindness preview
How White appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#FFFFFF
- Deuteranopia#FFFFFF
- Tritanopia#FFFFFF
- Protanomaly#FFFFFF
- Deuteranomaly#FFFFFF
- Tritanomaly#FFFFFF
- Achromatopsia#FFFFFF
Colors similar to White
The closest named colors by perceptual difference (OKLab).
Use White in CSS and Tailwind
.white {
color: white; /* #FFFFFF */
background-color: rgb(255 255 255);
border-color: oklch(100% 0 0);
}/* Tailwind CSS v4: bg-white-500, text-white-700... */
@theme {
--color-white-50: #FFFFFF;
--color-white-100: #F2F2F2;
--color-white-200: #DFDFDF;
--color-white-300: #C3C3C3;
--color-white-400: #9E9E9E;
--color-white-500: #888888;
--color-white-600: #747474;
--color-white-700: #5D5D5D;
--color-white-800: #4A4A4A;
--color-white-900: #3C3C3C;
--color-white-950: #161616;
}
<!-- or the exact color, no config -->
<div class="bg-[#FFFFFF] text-[#000000]">…</div>