#fff2cc ≈ Cornsilk
#fff2cc is a color from the yellow family, with very high lightness and muted saturation. In the RGB model it is made of 100% red, 94.9% green and 80% blue; printed in CMYK it uses 0% cyan, 5.1% magenta, 20% yellow and 0% black. Its hue angle is 44.71°, with 100% saturation and 90% lightness in HSL. It is a warm color, often associated with optimism, attention and joy. Designers typically use it for highlights and warnings, children's products and soft pastel palettes. Black text on this color reaches a contrast ratio of 18.82:1 (WCAG AAA). The closest named color is Cornsilk (#fff8dc), ΔE 3.56.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #ffffcc |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.8912 |
Shades
#fff2cc mixed progressively with black.
Tints
#fff2cc mixed progressively with white.
Tones
#fff2cc mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-fff2cc {
color: #fff2cc;
}
.bg-fff2cc {
background-color: #fff2cc;
color: #000000;
}
.border-fff2cc {
border: 2px solid #fff2cc;
}
:root {
--color-primary: #fff2cc;
--color-primary-rgb: 255 242 204;
--color-primary-hsl: 45 100% 90%;
}
.gradient-fff2cc {
background: linear-gradient(135deg, #fff2cc, #f2ffcc);
}
.shadow-fff2cc {
box-shadow: 0 8px 24px rgb(255 242 204 / 0.35);
}
Cornsilk
#fff2cc rgb(255, 242, 204) hsl(45, 100%, 90%) Cornsilk
#ccd9ff rgb(204, 217, 255) hsl(225, 100%, 90%) Periwinkle
#ccfff2 rgb(204, 255, 242) hsl(165, 100%, 90%) Celeste
#f2ccff rgb(242, 204, 255) hsl(285, 100%, 90%) Mauve