What is hex #FFD804 color?

 
The hex code #FFD804 is closest to the named color Gold (#FFD700).
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, 85% green and 2% blue, resulting in rgb(255, 216, 4) and hsl(51, 100%, 51%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 15%, 98%, 0%).
In the HSV/HSB scale, #FFD804 features a hue of 51°, 98% saturation, and 100% brightness.

Hex #FFD804 Color Codes & Conversions

Closest Named Color
Gold (#FFD700)
Hex Code #FFD804
Hex8 (RGBA Hex) #FFD804FF
RGB (CSS) rgb(255, 216, 4)
RGBA (CSS) rgba(255, 216, 4, 1)
HSL (CSS) hsl(51, 100%, 51%)
HSLA (CSS) hsla(51, 100%, 51%, 1)
HSV / HSB (51°, 98%, 100%)
CMYK Values (0%, 15%, 98%, 0%)
OKLCH (Modern CSS) oklch(88.9% 0.182 95.7)
CIE-LAB (D65) 87.19, -2.40, 86.97
CIE XYZ 65.82, 70.38, 10.23
Decimal / Binary 16766980
11111111 11011000 00000100

Closest Standards & Equivalents

Closest Web Safe
#FFCC00
Inverse Color
#0027FB
Complementary Color
#042BFF
Closest Pantone®
Pantone Medium Yellow C
Closest RAL
RAL 2007 [Luminous bright orange]

#FFD804 Grayscale Equivalents

Average
#9E9E9E
Lightness (Desaturation)
#828282
Weighted (BT601)
#CBCBCB
Luma (BT709)
#D1D1D1

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FFD804.

Contrast Ratio: 1.39:1
AA Fail AAA Fail

Black Text on #FFD804

Sample preview of readable typography on top of #FFD804.

Contrast Ratio: 15.08:1
AA Pass AAA Pass

HTML / CSS Live Previews & Snippets for #FFD804

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

Background Preview
background-color: #FFD804;
Typography Color Preview
color: #FFD804;
Border & Shadow Preview
border: 2px solid #FFD804;
CSS Custom Properties & Gradient
:root {
  --color-primary: #FFD804;
  --color-primary-rgb: 255, 216, 4;
  --color-complementary: #042BFF;
}
.btn-accent {
  background-color: #FFD804;
  color: #000000;
}

Hex #FFD804 Color Palettes

Complementary Palette

The complementary color of #FFD804 is #042BFF. 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 #FFD804 pairs with #FF5A04 and #A8FF04, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.

Split-Complementary Palette

The split-complementary scheme of #FFD804 pairs with #5A04FF and #04A8FF, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #FFD804 uses #D804FF and #04FFD8, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FFD804 combines #04FFD8, #042BFF and #FF042B around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FFD804 pairs with #04FF5A, #042BFF and #FF04A8 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FFD804

Tints

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

Tones

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

Shades

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

Hex #FFD804 in Programming & CSS Frameworks

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

HTML / CSS #FFD804
Tailwind CSS bg-[#FFD804] text-[#FFD804]
Java (AWT) new Color(255,216,4);
Python Color("#FFD804")
.NET (C#) Color.FromArgb(255, 255,216,4);
Swift / iOS UIColor(red: 1, green: 0.85, blue: 0.02, alpha: 1)
Kotlin / Android Color.rgb(255, 216, 4)