What is hex #FFE040 color?
In professional design frameworks, this hue is considered a highly vibrant and energetic tone. It is perfect for drawing attention to critical elements like call-to-action buttons, highlights, or modern branding.
From a technical standpoint, this color is composed of 100% red, 88% green and 25% blue, resulting in rgb(255, 224, 64) and hsl(50, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 12%, 75%, 0%).
In the HSV/HSB scale, #FFE040 features a hue of 50°, 75% saturation, and 100% brightness.
Hex #FFE040 Color Codes & Conversions
| Closest Named Color | Banana Yellow (#FFE135) |
| Hex Code | #FFE040 |
| Hex8 (RGBA Hex) | #FFE040FF |
| RGB (CSS) | rgb(255, 224, 64) |
| RGBA (CSS) | rgba(255, 224, 64, 1) |
| HSL (CSS) | hsl(50, 100%, 63%) |
| HSLA (CSS) | hsla(50, 100%, 63%, 1) |
| HSV / HSB | (50°, 75%, 100%) |
| CMYK Values | (0%, 12%, 75%, 0%) |
| OKLCH (Modern CSS) | oklch(90.7% 0.170 97.7) |
| CIE-LAB (D65) | 89.37, -5.18, 76.81 |
| CIE XYZ | 68.82, 74.95, 15.69 |
| Decimal / Binary |
16769088
11111111 11100000 01000000 |
WCAG 2.1 Color Contrast & Accessibility
Check how #FFE040 complies with web accessibility standards (WCAG AA & AAA) for typography. Need to test against another custom color? Use our interactive contrast checker.
White Text on #FFE040
Sample preview of readable typography on top of #FFE040.
Black Text on #FFE040
Sample preview of readable typography on top of #FFE040.
HTML / CSS Live Previews & Snippets for #FFE040
Preview #FFE040 in real UI elements and copy ready-to-use CSS rules.
background-color: #FFE040;
color: #FFE040;
border: 2px solid #FFE040;
:root {
--color-primary: #FFE040;
--color-primary-rgb: 255, 224, 64;
--color-complementary: #405FFF;
}
.btn-accent {
background-color: #FFE040;
color: #000000;
}
Hex #FFE040 Color Palettes
Complementary Palette
The complementary color of #FFE040 is #405FFF. Opposite on the color wheel, placing these two colors next to each other creates the strongest visual contrast.
Analogous Palette
The analogous color scheme of #FFE040 pairs with #FF8040 and #BEFF40, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #FFE040 pairs with #8040FF and #40BEFF, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #FFE040 uses #E040FF and #40FFE0, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #FFE040 combines #40FFE0, #405FFF and #FF405F around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #FFE040 pairs with #40FF80, #405FFF and #FF40BE spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #FFE040
Tints
Tints are created by mixing #FFE040 with white, producing lighter variations.
Tones
Tones are created by mixing #FFE040 with gray, softening saturation.
Shades
Shades result from mixing #FFE040 with black, creating deeper variations.
Hex #FFE040 in Programming & CSS Frameworks
Copy the exact syntax for #FFE040 in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #FFE040 |
| Tailwind CSS | bg-[#FFE040] text-[#FFE040] |
| Java (AWT) | new Color(255,224,64); |
| Python | Color("#FFE040") |
| .NET (C#) | Color.FromArgb(255, 255,224,64); |
| Swift / iOS | UIColor(red: 1, green: 0.88, blue: 0.25, alpha: 1) |
| Kotlin / Android | Color.rgb(255, 224, 64) |