What is hex #FFEC40 color?

 
The hex code #FFEC40 is closest to the named color Banana Yellow (#FFE135).
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, 93% green and 25% blue, resulting in rgb(255, 236, 64) and hsl(54, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 7%, 75%, 0%).
In the HSV/HSB scale, #FFEC40 features a hue of 54°, 75% saturation, and 100% brightness.

Hex #FFEC40 Color Codes & Conversions

Closest Named Color
Banana Yellow (#FFE135)
Hex Code #FFEC40
Hex8 (RGBA Hex) #FFEC40FF
RGB (CSS) rgb(255, 236, 64)
RGBA (CSS) rgba(255, 236, 64, 1)
HSL (CSS) hsl(54, 100%, 63%)
HSLA (CSS) hsla(54, 100%, 63%, 1)
HSV / HSB (54°, 75%, 100%)
CMYK Values (0%, 7%, 75%, 0%)
OKLCH (Modern CSS) oklch(93.1% 0.179 102.8)
CIE-LAB (D65) 92.41, -11.14, 79.63
CIE XYZ 72.16, 81.62, 16.80
Decimal / Binary 16772160
11111111 11101100 01000000

Closest Standards & Equivalents

Closest Web Safe
#FFFF33 [Electric Yellow]
Inverse Color
#0013BF
Complementary Color
#4053FF
Closest Pantone®
Pantone 101 C
Closest RAL
RAL 1016 [Sulfur yellow]

#FFEC40 Grayscale Equivalents

Average
#B9B9B9
Lightness (Desaturation)
#A0A0A0
Weighted (BT601)
#DEDEDE
Luma (BT709)
#E4E4E4

WCAG 2.1 Color Contrast & Accessibility

Check how #FFEC40 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 #FFEC40

Sample preview of readable typography on top of #FFEC40.

Contrast Ratio: 1.21:1
AA Fail AAA Fail

Black Text on #FFEC40

Sample preview of readable typography on top of #FFEC40.

Contrast Ratio: 17.32:1
AA Pass AAA Pass

HTML / CSS Live Previews & Snippets for #FFEC40

Preview #FFEC40 in real UI elements and copy ready-to-use CSS rules.

Background Preview
background-color: #FFEC40;
Typography Color Preview
color: #FFEC40;
Border & Shadow Preview
border: 2px solid #FFEC40;
CSS Custom Properties & Gradient
:root {
  --color-primary: #FFEC40;
  --color-primary-rgb: 255, 236, 64;
  --color-complementary: #4053FF;
}
.btn-accent {
  background-color: #FFEC40;
  color: #000000;
}

Hex #FFEC40 Color Palettes

Complementary Palette

The complementary color of #FFEC40 is #4053FF. 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 #FFEC40 pairs with #FF8C40 and #B2FF40, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #FFEC40 pairs with #8C40FF and #40B2FF, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #FFEC40 uses #EC40FF and #40FFEC, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FFEC40 combines #40FFEC, #4053FF and #FF4053 around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FFEC40 pairs with #40FF8C, #4053FF and #FF40B2 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FFEC40

Tints

Tints are created by mixing #FFEC40 with white, producing lighter variations.

Tones

Tones are created by mixing #FFEC40 with gray, softening saturation.

Shades

Shades result from mixing #FFEC40 with black, creating deeper variations.

Hex #FFEC40 in Programming & CSS Frameworks

Copy the exact syntax for #FFEC40 in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:

HTML / CSS #FFEC40
Tailwind CSS bg-[#FFEC40] text-[#FFEC40]
Java (AWT) new Color(255,236,64);
Python Color("#FFEC40")
.NET (C#) Color.FromArgb(255, 255,236,64);
Swift / iOS UIColor(red: 1, green: 0.93, blue: 0.25, alpha: 1)
Kotlin / Android Color.rgb(255, 236, 64)