Color #FFF2CC Color / Colour Code #FFF2CC

    This page shows the hex color code for color #fff2cc (#FFF2CC). The colour is a yellow tone with 100% saturation and 90% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.

    #FFF2CC

    Color Conversions

    HEX
    #FFF2CC
    RGB
    rgb(255, 242, 204)
    HSL
    hsl(45, 100%, 90%)
    HSV
    hsv(45, 20%, 100%)
    CMYK
    cmyk(0%, 5%, 20%, 0%)

    Accessibility Contrast

    WCAG contrast ratios for #FFF2CC against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    1.12:1
    AA FailAA Large FailAAA Fail
    Sample Text
    vs Black (#000000)
    18.82:1
    AA PassAA Large PassAAA Pass
    Sample Text
    vs Light Gray (#EEEEEE)
    1.04:1
    AA FailAA Large FailAAA Fail

    Complementary Colors

    #FFF2CC 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 #FFF2CC

    Monochromatic Scale

    Five shades at lightness levels 15% through 85% while keeping hue at 45 and saturation at 100%. Use the darkest shade for text and the lightest for backgrounds to build a cohesive single-hue design system.

    #4D3900 #997300 #FFBF00 #FFD966 #FFECB3
    Warm Harmony

    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.

    #E8BA30 #E8E830 #BAE830 #8CE830
    Cool Contrast

    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.

    #D9AC26 #2653D9 #5326D9 #AC26D9
    Pastel Variation

    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.

    #E0D6B8 #C2E0B8 #B8E0D6 #B8C2E0 #D6B8E0

    Shades & Tints of #FFF2CC

    Lightness variations at hue 45 and 100% saturation.

    CSS Gradients with #FFF2CC

    Yellow to Blue
    linear-gradient(135deg, #fff2cc, #ccd9ff)
    Analogous Fade
    linear-gradient(90deg, #fff2cc, #f2ffcc)
    Deep to Light
    linear-gradient(180deg, #5c4500, #ffe8a3)
    Tricolor Sweep
    linear-gradient(135deg, #fff2cc, #ccfff2, #f2ccff)

    Design Use Cases for #FFF2CC

    High-Impact Accent

    With 100% saturation, #FFF2CC 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, #FFF2CC 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

    #FFF2CC 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 #FFF2CC (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, #fff2cc, #ccd9ff);

    CSS Code for #FFF2CC

    /* Background */
    background-color: #fff2cc;
    background-color: rgb(255, 242, 204);
    background-color: hsl(45, 100%, 90%);
    /* Text */
    color: #fff2cc;
    /* Border */
    border: 2px solid #fff2cc;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(255, 242, 204, 0.3);
    /* CSS Variable */
    --color-primary: 45 100% 90%;

    Similar Colors

    Colors visually similar to #FFF2CC based on RGB, lightness, and hue variations.

    Use This Color in Design Tools

    Apply #FFF2CC across image editing and color design tools.

    About Color #FFF2CC (#FFF2CC)

    #FFF2CC is a yellow color (colour) with RGB channel values of 255 red, 242 green, and 204 blue. The red channel is dominant with a relatively balanced channel distribution. In HSL terms, the hue sits at 45 degrees with 100% saturation and 90% lightness, placing it in the warm range of the colour spectrum.

    The perceived brightness of #FFF2CC is 242/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, 20% yellow, and 0% key (black).

    The WCAG contrast ratio of #FFF2CC against white is 1.12:1 and against black is 18.82:1. This does not meet AA requirements on white. Use it on dark backgrounds where it achieves 18.82:1, or use it exclusively for decorative purposes.

    The complementary colour #CCD9FF creates maximum visual tension when paired with #FFF2CC. For more harmonious color combinations, use the analogous colours #FFD9CC and #F2FFCC, 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 #FFF2CC

    1. Enter your color value in HEX format.
    2. The tool converts it to RGB, HSL, CMYK format in real time.
    3. Copy the converted value to your clipboard.

    Color Converter · Contrast Checker

    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 #FFF2CC?
    #FFF2CC is Color #FFF2CC, a yellow color (colour) with RGB(255, 242, 204), HSL(45, 100%, 90%), and CMYK(0%, 5%, 20%, 0%). Its perceived brightness is 242/255.
    Is #FFF2CC accessible for text?
    Against white, #FFF2CC has a contrast ratio of 1.12:1 (fails AA for normal text). Against black, it has 18.82:1 (passes AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #FFF2CC?
    The complementary colour is #CCD9FF (hue 225). For subtle color combinations, use analogous colours #FFD9CC and #F2FFCC. The triadic palette adds #CCFFF2 and #F2CCFF for vibrant variety.
    How do I use #FFF2CC in CSS?
    Use any format: color: #fff2cc; or rgb(255, 242, 204); or hsl(45, 100%, 90%). For CSS custom properties: --color-primary: 45 100% 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.