#FEF2C7 color
The hex color #FEF2C7 is a very light, vivid yellow.
In the RGB color model it is made of 99.6% red, 94.9% green and 78% blue (254, 242, 199).
Its hue angle is 47°, with 96% saturation and 89% lightness. For print, the CMYK equivalent is 0% cyan, 5% magenta, 22% yellow and 0% black.
The closest named color is Vanilla Cake (#FCF0CA), a difference of 1.4 ΔE, which is barely visible.
Black text is the more readable choice on this background (contrast 18.74:1).
#FEF2C7 color codes
| HEX | #FEF2C7 | |
|---|---|---|
| RGB | rgb(254, 242, 199) | |
| RGB percent | rgb(99.6%, 94.9%, 78%) | |
| HSL | hsl(47, 96%, 89%) | |
| HSV / HSB | hsv(47, 22%, 100%) | |
| CMYK | cmyk(0%, 5%, 22%, 0%) | |
| CIE LAB | lab(95.45, -2.62, 22.24) | |
| CIE LCH | lch(95.45, 22.4, 96.72) | |
| CIE XYZ | xyz(82.934, 88.7, 66.774) | |
| Decimal | 16708295 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #FEF2C7, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #FEF2C7 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 18.74:1 | Pass | Pass | Pass |
| Sample text | 1.12:1 | Fail | Fail | Fail |
| #FEF2C7 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.12:1 | Fail | Fail | Fail |
| Sample text | 18.74:1 | Pass | Pass | Pass |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #FEF2C7 looks to people with the most common types of color vision deficiency.
#fbf0c4Protanopia
no red cones#fff4c8Deuteranopia
no green cones#ffebe6Tritanopia
no blue cones#f2f2f2Achromatopsia
no color vision
CSS examples
.background { background-color: #fef2c7; }
.text { color: #fef2c7; }
.border { border: 2px solid #fef2c7; }
.transparent { background-color: rgb(254 242 199 / 50%); }
.gradient { background: linear-gradient(to right, #fef2c7, #effec7); }
Similar colors
#fcf0caVanilla Cake#fff5cfStereotypical Duck#f9ebbfCandle in the Wind#f7eec8Banana Split#faefbeMoon Dance#faf1cdHint of Yellow#faf0beBlond#f5eec6Silk Star
Closest common color name: Lemon Chiffon.
Questions
- What color is #FEF2C7?
- #FEF2C7 is a very light, vivid yellow, closest to the named color Vanilla Cake. It belongs to the beige family of colors.
- What is the RGB value of #FEF2C7?
- The RGB value is 254, 242, 199: 254 red, 242 green and 199 blue on a 0 to 255 scale.
- What is the complementary color of #FEF2C7?
- The complementary color is #C7D3FE, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #FEF2C7?
- Black text. Black text has a contrast ratio of 18.74:1 and white text 1.12:1. WCAG asks for at least 4.5:1 for normal text.