What is hex #FFDF2B color?

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

Hex #FFDF2B Color Codes & Conversions

Closest Named Color
Banana Yellow (#FFE135)
Hex Code #FFDF2B
Hex8 (RGBA Hex) #FFDF2BFF
RGB (CSS) rgb(255, 223, 43)
RGBA (CSS) rgba(255, 223, 43, 1)
HSL (CSS) hsl(51, 100%, 58%)
HSLA (CSS) hsla(51, 100%, 58%, 1)
HSV / HSB (51°, 83%, 100%)
CMYK Values (0%, 13%, 83%, 0%)
OKLCH (Modern CSS) oklch(90.4% 0.178 98.0)
CIE-LAB (D65) 89.02, -5.35, 82.53
CIE XYZ 68.07, 74.21, 13.02
Decimal / Binary 16768811
11111111 11011111 00101011

Closest Standards & Equivalents

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

#FFDF2B Grayscale Equivalents

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

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FFDF2B.

Contrast Ratio: 1.33:1
AA Fail AAA Fail

Black Text on #FFDF2B

Sample preview of readable typography on top of #FFDF2B.

Contrast Ratio: 15.84:1
AA Pass AAA Pass

HTML / CSS Live Previews & Snippets for #FFDF2B

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

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

Hex #FFDF2B Color Palettes

Complementary Palette

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

Split-Complementary Palette

The split-complementary scheme of #FFDF2B pairs with #752BFF and #2BB5FF, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #FFDF2B uses #DF2BFF and #2BFFDF, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FFDF2B combines #2BFFDF, #2B4BFF and #FF2B4B around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FFDF2B pairs with #2BFF75, #2B4BFF and #FF2BB5 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FFDF2B

Tints

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

Tones

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

Shades

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

Hex #FFDF2B in Programming & CSS Frameworks

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

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