Color #FEF2CD Color / Colour Code #FEF2CD
This page shows the hex color code for color #fef2cd (#FEF2CD). The colour is a yellow tone with 96% saturation and 90% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.
Color Conversions
Accessibility Contrast
WCAG contrast ratios for #FEF2CD against common backgrounds.
Complementary Colors
#FEF2CD paired with its color wheel opposite for maximum contrast.
Analogous Colors
Hues at 15, 45, and 75 degrees for harmonious combinations.
Triadic Palette
Three colors at 45, 165, and 285 degrees.
Color Palettes Using #FEF2CD
Five shades at lightness levels 15% through 85% while keeping hue at 45 and saturation at 96%. Use the darkest shade for text and the lightest for backgrounds to build a cohesive single-hue design system.
Adjacent hues from 45 to 90 degrees create a warm, unified palette. This analogous scheme works for marketing materials, seasonal campaigns, and any design that needs visual warmth without clashing colors.
Combines the base color at hue 45 with its complement at 225 and two adjacent cool tones. This split-complementary approach provides strong visual contrast while remaining more balanced than a pure complementary scheme.
Five evenly spaced hues at 40% saturation and 80% lightness. Pastels are gentle on the eyes and work well for dashboards, onboarding screens, category tags, and any interface where multiple distinct colors are needed without visual aggression.
Shades & Tints of #FEF2CD
Lightness variations at hue 45 and 96% saturation.
CSS Gradients with #FEF2CD
Design Use Cases for #FEF2CD
High-Impact Accent
With 96% saturation, #FEF2CD is highly vivid. Reserve this for elements that need maximum attention: primary action buttons, notification badges, error states, or promotional banners. Use sparingly alongside neutral tones to avoid visual fatigue.
Near-White Background
At 90% lightness, #FEF2CD is very close to white but carries a subtle yellow tint. This is perfect for alternating row backgrounds in tables, subtle section differentiation, and adding warmth or coolness to an otherwise stark white design.
Attention & Optimism
#FEF2CD is in the yellow spectrum (hue 45). Yellow attracts attention faster than any other color. Use it for warning labels, featured content markers, star ratings, and tooltip backgrounds. Pair with dark text since yellow often fails contrast checks against white.
Gradient Pairing
Create a gradient from #FEF2CD (hue 45) to its complement at hue 225. For a subtler effect, try pairing with an analogous color at hue 75. Use CSS: background: linear-gradient(135deg, #fef2cd, #cdd9fe);
CSS Code for #FEF2CD
Similar Colors
Colors visually similar to #FEF2CD based on RGB, lightness, and hue variations.
Use This Color in Design Tools
Apply #FEF2CD across image editing and color design tools.
About Color #FEF2CD (#FEF2CD)
#FEF2CD is a yellow color (colour) with RGB channel values of 254 red, 242 green, and 205 blue. The red channel is dominant with a relatively balanced channel distribution. In HSL terms, the hue sits at 45 degrees with 96% saturation and 90% lightness, placing it in the warm range of the colour spectrum.
The perceived brightness of #FEF2CD is 241/255 using the ITU-R BT.601 luma formula (0.299R + 0.587G + 0.114B). This means it appears bright to the human eye and is best paired with dark text for readability. For print production, the CMYK equivalent is 0% cyan, 5% magenta, 19% yellow, and 0% key (black).
The WCAG contrast ratio of #FEF2CD against white is 1.12:1 and against black is 18.80:1. This does not meet AA requirements on white. Use it on dark backgrounds where it achieves 18.80:1, or use it exclusively for decorative purposes.
The complementary colour #CDD9FE creates maximum visual tension when paired with #FEF2CD. For more harmonious color combinations, use the analogous colours #FED9CD and #F2FECD, which sit 30 degrees on either side of the hue wheel. To build a complete design system, start with the monochromatic scale above for consistent shade variations, then add one complementary or triadic accent for interactive elements.
How to Explore Color #FEF2CD
- Enter your color value in HEX format.
- The tool converts it to RGB, HSL, CMYK format in real time.
- Copy the converted value to your clipboard.
What is HEX to RGB, HSL, CMYK color conversion
Converting from HEX to RGB, HSL, CMYK translates a color value between two different color models. Different color models are used in web design (HEX, RGB), print (CMYK), and color theory (HSL, HSV).
Related Tools & Colors
Frequently Asked Questions
- What color / colour is #FEF2CD?
- #FEF2CD is Color #FEF2CD, a yellow color (colour) with RGB(254, 242, 205), HSL(45, 96%, 90%), and CMYK(0%, 5%, 19%, 0%). Its perceived brightness is 241/255.
- Is #FEF2CD accessible for text?
- Against white, #FEF2CD has a contrast ratio of 1.12:1 (fails AA for normal text). Against black, it has 18.80:1 (passes AA). Use the contrast checker tool for custom background pairings.
- What colours pair well with #FEF2CD?
- The complementary colour is #CDD9FE (hue 225). For subtle color combinations, use analogous colours #FED9CD and #F2FECD. The triadic palette adds #CDFEF2 and #F2CDFE for vibrant variety.
- How do I use #FEF2CD in CSS?
- Use any format: color: #fef2cd; or rgb(254, 242, 205); or hsl(45, 96%, 90%). For CSS custom properties: --color-primary: 45 96% 90%; then use it as hsl(var(--color-primary)).
- Is this color / colour explorer free?
- Yes, completely free with no signup required. All colour calculations run in your browser. You can explore any valid hex color code, not just the pre-generated palette.