What is hex #FFDF2A color?

 
The hex code #FFDF2A 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, 87% green and 16% blue, resulting in rgb(255, 223, 42) and hsl(51, 100%, 58%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 13%, 84%, 0%).
In the HSV/HSB scale, #FFDF2A features a hue of 51°, 84% saturation, and 100% brightness.

Hex #FFDF2A Color Codes & Conversions

Closest Named Color
Banana Yellow (#FFE135)
Hex Code #FFDF2A
Hex8 (RGBA Hex) #FFDF2AFF
RGB (CSS) rgb(255, 223, 42)
RGBA (CSS) rgba(255, 223, 42, 1)
HSL (CSS) hsl(51, 100%, 58%)
HSLA (CSS) hsla(51, 100%, 58%, 1)
HSV / HSB (51°, 84%, 100%)
CMYK Values (0%, 13%, 84%, 0%)
OKLCH (Modern CSS) oklch(90.4% 0.179 98.0)
CIE-LAB (D65) 89.02, -5.37, 82.77
CIE XYZ 68.05, 74.21, 12.93
Decimal / Binary 16768810
11111111 11011111 00101010

Closest Standards & Equivalents

Closest Web Safe
#FFCC33
Inverse Color
#0020D5
Complementary Color
#2A4AFF
Closest Pantone®
Pantone 115 C
Closest RAL
RAL 1016 [Sulfur yellow]

#FFDF2A Grayscale Equivalents

Average
#ADADAD
Lightness (Desaturation)
#959595
Weighted (BT601)
#D4D4D4
Luma (BT709)
#D9D9D9

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FFDF2A.

Contrast Ratio: 1.33:1
AA Fail AAA Fail

Black Text on #FFDF2A

Sample preview of readable typography on top of #FFDF2A.

Contrast Ratio: 15.84:1
AA Pass AAA Pass

HTML / CSS Live Previews & Snippets for #FFDF2A

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

Background Preview
background-color: #FFDF2A;
Typography Color Preview
color: #FFDF2A;
Border & Shadow Preview
border: 2px solid #FFDF2A;
CSS Custom Properties & Gradient
:root {
  --color-primary: #FFDF2A;
  --color-primary-rgb: 255, 223, 42;
  --color-complementary: #2A4AFF;
}
.btn-accent {
  background-color: #FFDF2A;
  color: #000000;
}

Hex #FFDF2A Color Palettes

Complementary Palette

The complementary color of #FFDF2A is #2A4AFF. 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 #FFDF2A pairs with #FF742A and #B4FF2A, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #FFDF2A pairs with #742AFF and #2AB4FF, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #FFDF2A uses #DF2AFF and #2AFFDF, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FFDF2A combines #2AFFDF, #2A4AFF and #FF2A4A around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FFDF2A pairs with #2AFF74, #2A4AFF and #FF2AB4 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FFDF2A

Tints

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

Tones

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

Shades

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

Hex #FFDF2A in Programming & CSS Frameworks

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

HTML / CSS #FFDF2A
Tailwind CSS bg-[#FFDF2A] text-[#FFDF2A]
Java (AWT) new Color(255,223,42);
Python Color("#FFDF2A")
.NET (C#) Color.FromArgb(255, 255,223,42);
Swift / iOS UIColor(red: 1, green: 0.87, blue: 0.16, alpha: 1)
Kotlin / Android Color.rgb(255, 223, 42)