White Color

HEX, RGB, HSL & CMYK Codes

#ffffff
Format Value
HEX #ffffff
RGB rgb(255, 255, 255)
HSL hsl(0, 0%, 100%)
CMYK cmyk(0%, 0%, 0%, 0%)
HSV hsv(0, 0%, 100%)

white color harmonies

Tints & shades of white

Tints (lighter)

#ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff

Shades (darker)

#e8e8e8 #d1d1d1 #b9b9b9 #a2a2a2 #8b8b8b #747474 #5d5d5d #464646 #2e2e2e #171717

Contrast & accessibility

The quick brown fox

On white · 1:1 · Fail

The quick brown fox

On black · 21:1 · AAA

Recommended text color: #000000

Use white in code

CSS color: #ffffff;
SCSS $color: #ffffff;
Tailwind bg-[#ffffff]
Swift UIColor(red: 1.000, green: 1.000, blue: 1.000, alpha: 1)
Android Color.parseColor("#ffffff")
Flutter Color(0xFFFFFFFF)

Colors similar to white

Browse all Gray & neutral colors →

What is the HEX code for white?

The CSS color white in HEX format is #ffffff. Use this value directly in CSS, SVG, and most design tools.

How do I use white in CSS?

To apply white in CSS:

  • Text color: color: #ffffff;
  • Background: background-color: #ffffff;
  • Border: border-color: #ffffff;

What are all the color format values for white?

FormatValue
HEX#ffffff
RGBrgb(255, 255, 255)
HSLhsl(0, 0%, 100%)
CMYKcmyk(0%, 0%, 0%, 0%)

How do I convert white to HEX?

Select white from the color name list in our color converter. The HEX value — #ffffff — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does white belong to?

white belongs to the neutral (gray) color family. It is a light, muted color with HSL values: hue 0°, saturation 0%, lightness 100%.

How do I create lighter and darker shades of white?

Lighter variant (lightness 95%): #f2f2f2. Darker variant (lightness 85%): #d9d9d9. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.

What is HEX used for?

HEX color codes are used in CSS, HTML and design tools. They encode red, green and blue as two hexadecimal digits each (00–FF), forming a compact 6-character code like #ff0000.