CSS
HTML
COMPONENTS
CODE HUB
CSS Sepia Generator
Configuration
Sepia
Class
Preview

Code
Learn to Code with Lara
Master programming concepts step-by-step with your interactive AI tutor. Lara explains complex logic, reviews your practice exercises, and helps you build a solid foundation in software development.
Interactive coding lessons tailored to your own pace.
Start learning with LaraCSS Sepia Generator
In CSS, you can apply the sepia effect to elements using the filter property. The sepia effect gives an element a brownish, vintage, or old-fashioned appearance by transforming its colors to shades of brown.
Here's how you can use the sepia effect in CSS:
.sepia-element {
filter: sepia(100%);
}
in this example:
- The .sepia-element class applies the sepia effect to the element it targets.
- sepia(100%) specifies 100% sepia effect, which means that the element will appear entirely in shades of brown.
You can adjust the percentage value to control the intensity of the sepia effect. For example, sepia(50%) would result in a partially sepia-toned appearance, with some original colors preserved.
Here's another example with partial sepia:
.partial-sepia-element {
filter: sepia(30%);
}
In this case, the .partial-sepia-element class applies a 30% sepia effect, resulting in a partial transformation to shades of brown.
The sepia effect is often used to create a vintage or nostalgic look for images or elements, reminiscent of old photographs. It's a creative tool for achieving specific visual styles and adding character to your web designs.