What is hex #FFE402 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, 89% green and 1% blue, resulting in rgb(255, 228, 2) and hsl(54, 100%, 50%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 11%, 99%, 0%).
In the HSV/HSB scale, #FFE402 features a hue of 54°, 99% saturation, and 100% brightness.
Hex #FFE402 Color Codes & Conversions
| Closest Named Color | Aureolin (#FDEE00) |
| Hex Code | #FFE402 |
| Hex8 (RGBA Hex) | #FFE402FF |
| RGB (CSS) | rgb(255, 228, 2) |
| RGBA (CSS) | rgba(255, 228, 2, 1) |
| HSL (CSS) | hsl(54, 100%, 50%) |
| HSLA (CSS) | hsla(54, 100%, 50%, 1) |
| HSV / HSB | (54°, 99%, 100%) |
| CMYK Values | (0%, 11%, 99%, 0%) |
| OKLCH (Modern CSS) | oklch(91.3% 0.190 100.6) |
| CIE-LAB (D65) | 90.21, -8.43, 89.30 |
| CIE XYZ | 69.00, 76.75, 11.24 |
| Decimal / Binary |
16770050
11111111 11100100 00000010 |
Closest Standards & Equivalents
| Closest Web Safe | #FFCC00 |
| Inverse Color | #001BFD |
| Complementary Color | #021DFF |
| Closest Pantone® | Pantone 102 C |
| Closest RAL | RAL 1026 [Luminous yellow] |
#FFE402 Grayscale Equivalents
| Average | #A2A2A2 |
| Lightness (Desaturation) | #818181 |
| Weighted (BT601) | #D2D2D2 |
| Luma (BT709) | #D9D9D9 |
WCAG 2.1 Color Contrast & Accessibility
Check how #FFE402 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 #FFE402
Sample preview of readable typography on top of #FFE402.
Black Text on #FFE402
Sample preview of readable typography on top of #FFE402.
HTML / CSS Live Previews & Snippets for #FFE402
Preview #FFE402 in real UI elements and copy ready-to-use CSS rules.
background-color: #FFE402;
color: #FFE402;
border: 2px solid #FFE402;
:root {
--color-primary: #FFE402;
--color-primary-rgb: 255, 228, 2;
--color-complementary: #021DFF;
}
.btn-accent {
background-color: #FFE402;
color: #000000;
}
Hex #FFE402 Color Palettes
Complementary Palette
The complementary color of #FFE402 is #021DFF. 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 #FFE402 pairs with #FF6502 and #9BFF02, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #FFE402 pairs with #6502FF and #029BFF, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #FFE402 uses #E402FF and #02FFE4, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #FFE402 combines #02FFE4, #021DFF and #FF021D around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #FFE402 pairs with #02FF65, #021DFF and #FF029B spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #FFE402
Tints
Tints are created by mixing #FFE402 with white, producing lighter variations.
Tones
Tones are created by mixing #FFE402 with gray, softening saturation.
Shades
Shades result from mixing #FFE402 with black, creating deeper variations.
Hex #FFE402 in Programming & CSS Frameworks
Copy the exact syntax for #FFE402 in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #FFE402 |
| Tailwind CSS | bg-[#FFE402] text-[#FFE402] |
| Java (AWT) | new Color(255,228,2); |
| Python | Color("#FFE402") |
| .NET (C#) | Color.FromArgb(255, 255,228,2); |
| Swift / iOS | UIColor(red: 1, green: 0.89, blue: 0.01, alpha: 1) |
| Kotlin / Android | Color.rgb(255, 228, 2) |