What is hex #FFAF2F color?
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, 69% green and 18% blue, resulting in rgb(255, 175, 47) and hsl(37, 100%, 59%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 31%, 82%, 0%).
In the HSV/HSB scale, #FFAF2F features a hue of 37°, 82% saturation, and 100% brightness.
Hex #FFAF2F Color Codes & Conversions
| Closest Named Color | Bright Yellow Crayola (#FFAA1D) |
| Hex Code | #FFAF2F |
| Hex8 (RGBA Hex) | #FFAF2FFF |
| RGB (CSS) | rgb(255, 175, 47) |
| RGBA (CSS) | rgba(255, 175, 47, 1) |
| HSL (CSS) | hsl(37, 100%, 59%) |
| HSLA (CSS) | hsla(37, 100%, 59%, 1) |
| HSV / HSB | (37°, 82%, 100%) |
| CMYK Values | (0%, 31%, 82%, 0%) |
| OKLCH (Modern CSS) | oklch(81.2% 0.160 73.1) |
| CIE-LAB (D65) | 77.36, 19.45, 71.50 |
| CIE XYZ | 57.09, 52.13, 9.74 |
| Decimal / Binary |
16756527
11111111 10101111 00101111 |
Closest Standards & Equivalents
| Closest Web Safe | #FF9933 [Deep Saffron] |
| Inverse Color | #0050D0 |
| Complementary Color | #2F7FFF |
| Closest Pantone® | Pantone 143 C |
| Closest RAL | RAL 1018 [Zinc yellow] |
#FFAF2F Grayscale Equivalents
| Average | #9F9F9F |
| Lightness (Desaturation) | #979797 |
| Weighted (BT601) | #B8B8B8 |
| Luma (BT709) | #B7B7B7 |
WCAG 2.1 Color Contrast & Accessibility
Check how #FFAF2F 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 #FFAF2F
Sample preview of readable typography on top of #FFAF2F.
Black Text on #FFAF2F
Sample preview of readable typography on top of #FFAF2F.
HTML / CSS Live Previews & Snippets for #FFAF2F
Preview #FFAF2F in real UI elements and copy ready-to-use CSS rules.
background-color: #FFAF2F;
color: #FFAF2F;
border: 2px solid #FFAF2F;
:root {
--color-primary: #FFAF2F;
--color-primary-rgb: 255, 175, 47;
--color-complementary: #2F7FFF;
}
.btn-accent {
background-color: #FFAF2F;
color: #000000;
}
Hex #FFAF2F Color Palettes
Complementary Palette
The complementary color of #FFAF2F is #2F7FFF. 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 #FFAF2F pairs with #FF472F and #E7FF2F, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #FFAF2F pairs with #472FFF and #2FE7FF, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #FFAF2F uses #AF2FFF and #2FFFAF, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #FFAF2F combines #2FFFAF, #2F7FFF and #FF2F7F around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #FFAF2F pairs with #2FFF47, #2F7FFF and #FF2FE7 spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #FFAF2F
Tints
Tints are created by mixing #FFAF2F with white, producing lighter variations.
Tones
Tones are created by mixing #FFAF2F with gray, softening saturation.
Shades
Shades result from mixing #FFAF2F with black, creating deeper variations.
Hex #FFAF2F in Programming & CSS Frameworks
Copy the exact syntax for #FFAF2F in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #FFAF2F |
| Tailwind CSS | bg-[#FFAF2F] text-[#FFAF2F] |
| Java (AWT) | new Color(255,175,47); |
| Python | Color("#FFAF2F") |
| .NET (C#) | Color.FromArgb(255, 255,175,47); |
| Swift / iOS | UIColor(red: 1, green: 0.69, blue: 0.18, alpha: 1) |
| Kotlin / Android | Color.rgb(255, 175, 47) |