What is hex #FFC040 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, 75% green and 25% blue, resulting in rgb(255, 192, 64) and hsl(40, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 25%, 75%, 0%).
In the HSV/HSB scale, #FFC040 features a hue of 40°, 75% saturation, and 100% brightness.
Hex #FFC040 Color Codes & Conversions
| Closest Named Color | Banana Yellow (#FFE135) |
| Hex Code | #FFC040 |
| Hex8 (RGBA Hex) | #FFC040FF |
| RGB (CSS) | rgb(255, 192, 64) |
| RGBA (CSS) | rgba(255, 192, 64, 1) |
| HSL (CSS) | hsl(40, 100%, 63%) |
| HSLA (CSS) | hsla(40, 100%, 63%, 1) |
| HSV / HSB | (40°, 75%, 100%) |
| CMYK Values | (0%, 25%, 75%, 0%) |
| OKLCH (Modern CSS) | oklch(84.4% 0.154 81.0) |
| CIE-LAB (D65) | 81.47, 11.18, 69.36 |
| CIE XYZ | 61.02, 59.33, 13.09 |
| Decimal / Binary |
16760896
11111111 11000000 01000000 |
WCAG 2.1 Color Contrast & Accessibility
Check how #FFC040 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 #FFC040
Sample preview of readable typography on top of #FFC040.
Black Text on #FFC040
Sample preview of readable typography on top of #FFC040.
HTML / CSS Live Previews & Snippets for #FFC040
Preview #FFC040 in real UI elements and copy ready-to-use CSS rules.
background-color: #FFC040;
color: #FFC040;
border: 2px solid #FFC040;
:root {
--color-primary: #FFC040;
--color-primary-rgb: 255, 192, 64;
--color-complementary: #407FFF;
}
.btn-accent {
background-color: #FFC040;
color: #000000;
}
Hex #FFC040 Color Palettes
Complementary Palette
The complementary color of #FFC040 is #407FFF. 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 #FFC040 pairs with #FF6040 and #DEFF40, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #FFC040 pairs with #6040FF and #40DEFF, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #FFC040 uses #C040FF and #40FFC0, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #FFC040 combines #40FFC0, #407FFF and #FF407F around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #FFC040 pairs with #40FF60, #407FFF and #FF40DE spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #FFC040
Tints
Tints are created by mixing #FFC040 with white, producing lighter variations.
Tones
Tones are created by mixing #FFC040 with gray, softening saturation.
Shades
Shades result from mixing #FFC040 with black, creating deeper variations.
Hex #FFC040 in Programming & CSS Frameworks
Copy the exact syntax for #FFC040 in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #FFC040 |
| Tailwind CSS | bg-[#FFC040] text-[#FFC040] |
| Java (AWT) | new Color(255,192,64); |
| Python | Color("#FFC040") |
| .NET (C#) | Color.FromArgb(255, 255,192,64); |
| Swift / iOS | UIColor(red: 1, green: 0.75, blue: 0.25, alpha: 1) |
| Kotlin / Android | Color.rgb(255, 192, 64) |