What is hex #FFCF28 color?

 
The hex code #FFCF28 is closest to the named color Deep Lemon (#F5C71A).
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, 81% green and 16% blue, resulting in rgb(255, 207, 40) and hsl(47, 100%, 58%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 19%, 84%, 0%).
In the HSV/HSB scale, #FFCF28 features a hue of 47°, 84% saturation, and 100% brightness.

Hex #FFCF28 Color Codes & Conversions

Closest Named Color
Deep Lemon (#F5C71A)
Hex Code #FFCF28
Hex8 (RGBA Hex) #FFCF28FF
RGB (CSS) rgb(255, 207, 40)
RGBA (CSS) rgba(255, 207, 40, 1)
HSL (CSS) hsl(47, 100%, 58%)
HSLA (CSS) hsla(47, 100%, 58%, 1)
HSV / HSB (47°, 84%, 100%)
CMYK Values (0%, 19%, 84%, 0%)
OKLCH (Modern CSS) oklch(87.2% 0.170 90.8)
CIE-LAB (D65) 85.02, 2.68, 79.94
CIE XYZ 63.94, 66.04, 11.39
Decimal / Binary 16764712
11111111 11001111 00101000

Closest Standards & Equivalents

Closest Web Safe
#FFCC33
Inverse Color
#0030D7
Complementary Color
#2858FF
Closest Pantone®
Pantone 123 C
Closest RAL
RAL 1018 [Zinc yellow]

#FFCF28 Grayscale Equivalents

Average
#A7A7A7
Lightness (Desaturation)
#949494
Weighted (BT601)
#CACACA
Luma (BT709)
#CDCDCD

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FFCF28.

Contrast Ratio: 1.48:1
AA Fail AAA Fail

Black Text on #FFCF28

Sample preview of readable typography on top of #FFCF28.

Contrast Ratio: 14.21:1
AA Pass AAA Pass

HTML / CSS Live Previews & Snippets for #FFCF28

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

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

Hex #FFCF28 Color Palettes

Complementary Palette

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

Split-Complementary Palette

The split-complementary scheme of #FFCF28 pairs with #6328FF and #28C3FF, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #FFCF28 uses #CF28FF and #28FFCF, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FFCF28 combines #28FFCF, #2858FF and #FF2858 around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FFCF28 pairs with #28FF63, #2858FF and #FF28C3 spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FFCF28

Tints

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

Tones

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

Shades

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

Hex #FFCF28 in Programming & CSS Frameworks

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

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