Abakada: Back to Basics > Language References > CSS Properties > At-Rules > @colorProfile
Defines a color profile which can later be used in the color( ) function.
@color-profile: src [ relative-colorimetric | absolute-colorimetric | perceptual | saturation ]
Parameter |
Description |
Valid Values |
src |
Specifies the URL to retrieve the color-profile information from. |
string denoting the URL to be used. |
relative-colorimetric |
Leaves source colors unchanged relative to the respective media white points. |
|
absolute-colorimetric |
Leaves source colors unchanged relative to a perfect reflecting diffuser. |
|
perceptual |
Optimizes the appearance for the destination medium using proprietary methods. |
|
saturation |
Preserves the relative saturation (chroma) of the original. |
|
The @color-profile property specifies a file that describes the color characteristics of a device or a color space, ensuring consistent color reproduction across different devices.
In its simplest form, @color-profile is specified with a src attribute.
@color-profile --profileName {
src: url( https://example.com/unwise );
}
NOTE: This section is currently under major reconstruction. Please bear with whatever inconvenience you may encounter; we hope to complete the job at the soonest possible time.