What is hex #FFD142 color?

 
The hex code #FFD142 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, 82% green and 26% blue, resulting in rgb(255, 209, 66) and hsl(45, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 18%, 74%, 0%).
In the HSV/HSB scale, #FFD142 features a hue of 45°, 74% saturation, and 100% brightness.

Hex #FFD142 Color Codes & Conversions

Closest Named Color
Banana Yellow (#FFE135)
Hex Code #FFD142
Hex8 (RGBA Hex) #FFD142FF
RGB (CSS) rgb(255, 209, 66)
RGBA (CSS) rgba(255, 209, 66, 1)
HSL (CSS) hsl(45, 100%, 63%)
HSLA (CSS) hsla(45, 100%, 63%, 1)
HSV / HSB (45°, 74%, 100%)
CMYK Values (0%, 18%, 74%, 0%)
OKLCH (Modern CSS) oklch(87.7% 0.160 90.2)
CIE-LAB (D65) 85.63, 2.50, 72.61
CIE XYZ 65.03, 67.26, 14.71
Decimal / Binary 16765250
11111111 11010001 01000010

Closest Standards & Equivalents

Closest Web Safe
#FFCC33
Inverse Color
#002EBD
Complementary Color
#4270FF
Closest Pantone®
Pantone 122 C
Closest RAL
RAL 1018 [Zinc yellow]

#FFD142 Grayscale Equivalents

Average
#B1B1B1
Lightness (Desaturation)
#A1A1A1
Weighted (BT601)
#CECECE
Luma (BT709)
#D0D0D0

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FFD142.

Contrast Ratio: 1.45:1
AA Fail AAA Fail

Black Text on #FFD142

Sample preview of readable typography on top of #FFD142.

Contrast Ratio: 14.45:1
AA Pass AAA Pass

HTML / CSS Live Previews & Snippets for #FFD142

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

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

Hex #FFD142 Color Palettes

Complementary Palette

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

Split-Complementary Palette

The split-complementary scheme of #FFD142 pairs with #7242FF and #42CEFF, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #FFD142 uses #D142FF and #42FFD1, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FFD142 combines #42FFD1, #4270FF and #FF4270 around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FFD142 pairs with #42FF72, #4270FF and #FF42CE spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FFD142

Tints

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

Tones

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

Shades

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

Hex #FFD142 in Programming & CSS Frameworks

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

HTML / CSS #FFD142
Tailwind CSS bg-[#FFD142] text-[#FFD142]
Java (AWT) new Color(255,209,66);
Python Color("#FFD142")
.NET (C#) Color.FromArgb(255, 255,209,66);
Swift / iOS UIColor(red: 1, green: 0.82, blue: 0.26, alpha: 1)
Kotlin / Android Color.rgb(255, 209, 66)