What is hex #FFD342 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, 83% green and 26% blue, resulting in rgb(255, 211, 66) and hsl(46, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 17%, 74%, 0%).
In the HSV/HSB scale, #FFD342 features a hue of 46°, 74% saturation, and 100% brightness.
Hex #FFD342 Color Codes & Conversions
| Closest Named Color | Banana Yellow (#FFE135) |
| Hex Code | #FFD342 |
| Hex8 (RGBA Hex) | #FFD342FF |
| RGB (CSS) | rgb(255, 211, 66) |
| RGBA (CSS) | rgba(255, 211, 66, 1) |
| HSL (CSS) | hsl(46, 100%, 63%) |
| HSLA (CSS) | hsla(46, 100%, 63%, 1) |
| HSV / HSB | (46°, 74%, 100%) |
| CMYK Values | (0%, 17%, 74%, 0%) |
| OKLCH (Modern CSS) | oklch(88.1% 0.161 91.2) |
| CIE-LAB (D65) | 86.13, 1.48, 73.08 |
| CIE XYZ | 65.52, 68.25, 14.87 |
| Decimal / Binary |
16765762
11111111 11010011 01000010 |
WCAG 2.1 Color Contrast & Accessibility
Check how #FFD342 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 #FFD342
Sample preview of readable typography on top of #FFD342.
Black Text on #FFD342
Sample preview of readable typography on top of #FFD342.
HTML / CSS Live Previews & Snippets for #FFD342
Preview #FFD342 in real UI elements and copy ready-to-use CSS rules.
background-color: #FFD342;
color: #FFD342;
border: 2px solid #FFD342;
:root {
--color-primary: #FFD342;
--color-primary-rgb: 255, 211, 66;
--color-complementary: #426EFF;
}
.btn-accent {
background-color: #FFD342;
color: #000000;
}
Hex #FFD342 Color Palettes
Complementary Palette
The complementary color of #FFD342 is #426EFF. 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 #FFD342 pairs with #FF7442 and #CCFF42, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #FFD342 pairs with #7442FF and #42CCFF, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #FFD342 uses #D342FF and #42FFD3, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #FFD342 combines #42FFD3, #426EFF and #FF426E around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #FFD342 pairs with #42FF74, #426EFF and #FF42CC spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #FFD342
Tints
Tints are created by mixing #FFD342 with white, producing lighter variations.
Tones
Tones are created by mixing #FFD342 with gray, softening saturation.
Shades
Shades result from mixing #FFD342 with black, creating deeper variations.
Hex #FFD342 in Programming & CSS Frameworks
Copy the exact syntax for #FFD342 in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #FFD342 |
| Tailwind CSS | bg-[#FFD342] text-[#FFD342] |
| Java (AWT) | new Color(255,211,66); |
| Python | Color("#FFD342") |
| .NET (C#) | Color.FromArgb(255, 255,211,66); |
| Swift / iOS | UIColor(red: 1, green: 0.83, blue: 0.26, alpha: 1) |
| Kotlin / Android | Color.rgb(255, 211, 66) |