Photo in the color Platinum
Pictured: Platinum, the closest color we have a photo of (#E5E4E2)
rgb(225, 229, 229)
#E1E5E5

Shaving Cream #E1E5E5 RGB Color Code

Name from the community color list.

Shaving Cream (#E1E5E5) is a very light neutral gray. In RGB it is made of 88% red, 90% green and 90% blue (R 225, G 229, B 229). The green channel is the strongest. In HSL it has a hue of 180°, 7% saturation and 89% lightness. Its relative luminance is 0.777, so black text is easier to read on top of it. For print, a rough CMYK match is 2% cyan, 0% magenta, 0% yellow and 10% black. Check it against your printer's ICC profile before you print. It is a neutral color. It goes well with warm oranges and reds for contrast. For a calm, matching look, use nearby cool tones.

Open in color picker

Shaving Cream color codes

#E1E5E5 in every common color format. Click a value to copy it.

FormatValueNotesCopy
HEX #E1E5E5 Valid CSS
RGB rgb(225, 229, 229) Valid CSS
HSL hsl(180, 7%, 89%) Valid CSS
HSV / HSB hsv(180, 2%, 90%) Not a CSS format
HWB hwb(180 88% 10%) Valid CSS
CMYK cmyk(2%, 0%, 0%, 10%) Approximate (no ICC profile)
OKLCH oklch(91.88% 0.0043 197.08) Valid CSS
OKLab oklab(91.88% -0.0041 -0.0013) Valid CSS
CIELAB lab(90.63% -1.39 -0.5) D50, as in CSS
CIELCH lch(90.63% 1.48 199.6) Valid CSS
Display P3 color(display-p3 0.8852 0.8975 0.8978) Valid CSS
XYZ (D65) color(xyz-d65 0.7321 0.777 0.8527) Valid CSS
Decimal 14804453 Integer (0xRRGGBB)

CMYK here is a rough screen match without an ICC profile. See CMYK and print. Relative luminance: 0.7770. Nearest web-safe color: #CCCCCC.

Mix Shaving Cream with other colors

See what #E1E5E5 makes with red paint, under a green light, printed with cyan ink and in a digital blend with blue. Click a picture to change the colors and amounts in the color mixer.

Use Shaving Cream in your code

Ready to paste into CSS, Sass, Tailwind, iOS, Android and Flutter. Click the icon to copy a line.

WhereCodeCopy
CSS variable--shaving-cream: #E1E5E5;
Sass variable$shaving-cream: #E1E5E5;
Tailwind CSS v4@theme { --color-shaving-cream: #E1E5E5; }
Tailwind CSS v3 configcolors: { 'shaving-cream': '#E1E5E5' }
SwiftUIColor(red: 0.882, green: 0.898, blue: 0.898)
UIKitUIColor(red: 0.882, green: 0.898, blue: 0.898, alpha: 1)
Android XML<color name="shaving_cream">#FFE1E5E5</color>
Flutter and Jetpack ComposeColor(0xFFE1E5E5)

Accessibility and contrast

Black text works best on #E1E5E5 (16.54:1, AAA). Here is how #E1E5E5 does as a text color:

Large heading text
Body text at 16px. The quick brown fox jumps over the lazy dog.
1.27:1 on white
APCA Lc 13
Fails AATry #747777
Large heading text
Body text at 16px. The quick brown fox jumps over the lazy dog.
16.54:1 on black
APCA Lc -91
AAA

Check this color against any background in the contrast checker. WCAG ratios and APCA Lc values measure different things, so one can't stand in for the other. Learn more.

How people with color blindness see Shaving Cream

#E1E5E5 next to its complement and its two triadic colors, as seen with each type of color blindness.

  • Normal visionhow most people see it
  • Protanopiano red cones, about 1% of men
  • Deuteranopiano green cones, the most common type
  • Tritanopiano blue cones, very rare
  • Achromatopsiano color at all, very rare

#E1E5E5 has almost no hue, so it looks much the same with every type of color blindness. Only its lightness counts. Try your own colors in the color blindness simulator.

Shaving Cream in a user interface

A sample app screen with #E1E5E5 as the main color, on a light and a dark theme.

Light theme

Dark theme

Buttons and bars use #E1E5E5 as it is. On the light theme, #E1E5E5 is too hard to read as text (1.27:1), so links, the badge and outline text use #747777 there (4.52:1). Build a full color scheme around it in the UI color preview.

Color harmonies for Shaving Cream

These schemes turn the hue of #E1E5E5 around the color wheel. Each swatch links to its own page.

Complementary

Two colors on opposite sides of the wheel. This gives the most contrast.

Open palette

Analogous

Hues that sit next to each other and look good together.

Open palette

Triadic

Three hues spaced evenly around the wheel. Bold, but still balanced.

Open palette

Split complementary

A base color plus the two hues on each side of its opposite. Strong contrast that clashes less.

Open palette

Tetradic (rectangle)

Two pairs of opposite colors. Let one color lead and use the others less.

Open palette

Square

Four hues 90° apart, spread evenly around the wheel.

Open palette

Monochromatic

One hue at different levels of lightness and saturation.

Open palette

Gradients with Shaving Cream

Four CSS gradients made from #E1E5E5. Copy the code, or open one in the gradient generator to change it.

Soft tint

From a pale tint to the full color.

background: linear-gradient(90deg, #F9FAFA, #E1E5E5);

Edit in the gradient generator

Deep shade

The color fading into a dark shade.

background: linear-gradient(180deg, #E1E5E5, #3E3F3F);

Edit in the gradient generator

Analogous

Its two neighbors on the color wheel.

background: linear-gradient(135deg, #E1E5E3, #E1E5E5, #E1E3E5);

Edit in the gradient generator

Triadic

A bold blend with a triadic color, through a clean middle.

background: linear-gradient(135deg, #E1E5E5, #E3E3E5, #E5E1E5);

Edit in the gradient generator

Shades, tints and tones of Shaving Cream

Shades are darker, tints are lighter and tones are grayer. We make them in OKLCH so the steps look even. Hover a step to see its code, or click it to open it.

Design system scale (50 to 950)

Shaving Cream sits at step 100. Export the full scale as CSS variables or Tailwind tokens from the picker.

  1. 50
    F6F7F7
  2. 100
    E1E5E5
  3. 200
    D9DBDB
  4. 300
    BEC2C2
  5. 400
    A0A4A4
  6. 500
    838787
  7. 600
    696C6C
  8. 700
    535656
  9. 800
    404343
  10. 900
    2F3131
  11. 950
    1C1D1D

Closest RAL, Tailwind and CSS colors

The nearest match to #E1E5E5 in three color systems that designers and builders use.

ΔE is the distance in OKLab: under 2 is hard to see, over 10 is a clearly different color. Browse all RAL colors, the Tailwind palette or the 148 CSS color names. RAL values on screens are only a guide, so check a real color chart before you order paint.

The named colors that look closest to this one (ΔE in OKLab). Browse all shades of gray or search the color library.