What is hex #FFCF40 color?

 
The hex code #FFCF40 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, 81% green and 25% blue, resulting in rgb(255, 207, 64) and hsl(45, 100%, 63%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 19%, 75%, 0%).
In the HSV/HSB scale, #FFCF40 features a hue of 45°, 75% saturation, and 100% brightness.

Hex #FFCF40 Color Codes & Conversions

Closest Named Color
Banana Yellow (#FFE135)
Hex Code #FFCF40
Hex8 (RGBA Hex) #FFCF40FF
RGB (CSS) rgb(255, 207, 64)
RGBA (CSS) rgba(255, 207, 64, 1)
HSL (CSS) hsl(45, 100%, 63%)
HSLA (CSS) hsla(45, 100%, 63%, 1)
HSV / HSB (45°, 75%, 100%)
CMYK Values (0%, 19%, 75%, 0%)
OKLCH (Modern CSS) oklch(87.3% 0.160 89.3)
CIE-LAB (D65) 85.13, 3.44, 72.83
CIE XYZ 64.48, 66.26, 14.24
Decimal / Binary 16764736
11111111 11001111 01000000

Closest Standards & Equivalents

Closest Web Safe
#FFCC33
Inverse Color
#0030BF
Complementary Color
#4070FF
Closest Pantone®
Pantone 122 C
Closest RAL
RAL 1018 [Zinc yellow]

#FFCF40 Grayscale Equivalents

Average
#AFAFAF
Lightness (Desaturation)
#A0A0A0
Weighted (BT601)
#CDCDCD
Luma (BT709)
#CFCFCF

WCAG 2.1 Color Contrast & Accessibility

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

Sample preview of readable typography on top of #FFCF40.

Contrast Ratio: 1.47:1
AA Fail AAA Fail

Black Text on #FFCF40

Sample preview of readable typography on top of #FFCF40.

Contrast Ratio: 14.25:1
AA Pass AAA Pass

HTML / CSS Live Previews & Snippets for #FFCF40

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

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

Hex #FFCF40 Color Palettes

Complementary Palette

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

Split-Complementary Palette

The split-complementary scheme of #FFCF40 pairs with #6F40FF and #40CFFF, delivering strong contrast while remaining easier to balance than a direct complement.

Triadic Palette

The triadic color scheme of #FFCF40 uses #CF40FF and #40FFCF, spaced 120° apart for balanced, high-energy contrast.

Tetradic Palette

The tetradic color scheme of #FFCF40 combines #40FFCF, #4070FF and #FF4070 around the color wheel for rich multi-accent UI systems.

Square Palette

The square color scheme of #FFCF40 pairs with #40FF6F, #4070FF and #FF40CF spaced evenly at 90° intervals.

Tints, Tones & Shades of Hex #FFCF40

Tints

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

Tones

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

Shades

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

Hex #FFCF40 in Programming & CSS Frameworks

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

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