What is hex #FFD802 color?

 
The hex code #FFD802 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 1% blue, resulting in rgb(255, 216, 2) and hsl(51, 100%, 50%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 15%, 99%, 0%).
In the HSV/HSB scale, #FFD802 features a hue of 51°, 99% saturation, and 100% brightness.

Hex #FFD802 Color Codes & Conversions

Closest Named Color
Gold (#FFD700)
Hex Code #FFD802
Hex8 (RGBA Hex) #FFD802FF
RGB (CSS) rgb(255, 216, 2)
RGBA (CSS) rgba(255, 216, 2, 1)
HSL (CSS) hsl(51, 100%, 50%)
HSLA (CSS) hsla(51, 100%, 50%, 1)
HSV / HSB (51°, 99%, 100%)
CMYK Values (0%, 15%, 99%, 0%)
OKLCH (Modern CSS) oklch(88.9% 0.183 95.7)
CIE-LAB (D65) 87.18, -2.41, 87.14
CIE XYZ 65.81, 70.38, 10.18
Decimal / Binary 16766978
11111111 11011000 00000010

Closest Standards & Equivalents

Closest Web Safe
#FFCC00
Inverse Color
#0027FD
Complementary Color
#0229FF
Closest Pantone®
Pantone Medium Yellow C
Closest RAL
RAL 2007 [Luminous bright orange]

#FFD802 Grayscale Equivalents

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

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FFD802.

Contrast Ratio: 1.39:1
AA Fail AAA Fail

Black Text on #FFD802

Sample preview of readable typography on top of #FFD802.

Contrast Ratio: 15.08:1
AA Pass AAA Pass

HTML / CSS Live Previews & Snippets for #FFD802

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

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

Hex #FFD802 Color Palettes

Complementary Palette

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

Split-Complementary Palette

The split-complementary scheme of #FFD802 pairs with #5902FF and #02A7FF, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #FFD802 uses #D802FF and #02FFD8, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FFD802 combines #02FFD8, #0229FF and #FF0229 around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FFD802 pairs with #02FF59, #0229FF and #FF02A7 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FFD802

Tints

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

Tones

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

Shades

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

Hex #FFD802 in Programming & CSS Frameworks

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

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