#f3cf2e
a balanced, electric yellow · warm · closest name: Gold
At a glance
Every number on this page in one read: what #f3cf2e is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #f3cf2e |
| RGB | rgb(243, 207, 46) |
| HSL | hsl(49, 89%, 57%) |
| CMYK | cmyk(0%, 15%, 81%, 5%) |
| LAB | lab(83.9 -2.3 77.0) |
| LCH | lch(83.9 77.0 91.7) |
| OKLCH | oklch(0.861 0.166 95.3) |
| Decimal | 15978286 |
| Display P3 | color(display-p3 0.953 0.812 0.180) |
Copy-ready code
/* CSS */
color: #f3cf2e;
background-color: #f3cf2e;
/* Tailwind (arbitrary) */
class="text-[#f3cf2e] bg-[#f3cf2e]"
/* SCSS */
$brand: #f3cf2e;
/* SwiftUI */
Color(red: 0.953, green: 0.812, blue: 0.180)
/* Android */
Color.parseColor("#f3cf2e")
/* Flutter */
Color(0xFFF3CF2E)
/* Python / OpenCV (BGR) */
(46, 207, 243)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #f3cf2e is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FDFBF2;
--brand-100: #FBF7E5;
--brand-200: #F8EEC4;
--brand-300: #F9E795;
--brand-400: #F6DA60;
--brand-500: #f3cf2e;
--brand-600: #E7BF0D;
--brand-700: #C1A00B;
--brand-800: #9A8009;
--brand-900: #6F5D0B;
--brand-950: #463A07;
--brand: #f3cf2e;
--brand-ink: #000000;
}Colors that work with #f3cf2e
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #f3cf2e
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠Text of any size on white — fails WCAG AA
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Thin strokes and 1px borders — they disappear on light UI
- ⚠Pairing with a same-lightness hue — edges vibrate
Similar colors
One move away from this hex in each direction. Every swatch is its own page.
Color relationships
The wheel positions with their names attached, so you can grab the one you actually need.
| Complementary | #2E52F3 | Directly opposite — maximum tension | |
| Analogous left | #F36D2E | Neighbour, quieter | |
| Analogous right | #B5F32E | Neighbour, quieter | |
| Split-complement 1 | #2EB5F3 | Contrast without the clash | |
| Split-complement 2 | #6D2EF3 | Contrast without the clash | |
| Triadic 1 | #2EF3CF | Even thirds — balanced and loud | |
| Triadic 2 | #CF2EF3 | Even thirds — balanced and loud | |
| Tetradic | #2EF36D | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#f3cf2e text on a black background
contrast 13.78:1
#f3cf2e text on a white background
contrast 1.52:1
CSS3 live lab
The quick brown fox
color: #f3cf2e;
background-color: #f3cf2e;
Glowing headline
text-shadow: 2px 2px 8px #f3cf2e;
Soft neon halo
text-shadow: 0 0 14px rgba(243, 207, 46, 0.45);
box-shadow: 0 12px 32px -8px rgba(243, 207, 46, 0.45);
border: 3px solid #f3cf2e; background: linear-gradient(135deg, #f3cf2e, #94F32E);
Monochromatic scale
Palettes built from #f3cf2e
Shades — darker
Tints — lighter
Color harmonies
Nearest named colors
Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.
Closest color with a full write-up: Gold (#ffd700) — ΔE2000 3 away, with its history, psychology and brand usage.
#f3cf2e in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#f3cf2e, answered
What color is #f3cf2e?
#f3cf2e is a balanced electric yellow, closest to Gold (ΔE2000 3). It sits at 49° on the hue wheel with 89% saturation and 57% lightness, which reads as warm.
What is the RGB value of #f3cf2e?
rgb(243, 207, 46) — 243 red, 207 green and 46 blue out of 255, or 95.3% / 81.2% / 18% by channel.
Is #f3cf2e a light or a dark color?
It is a light color. Relative luminance is 0.6388 and perceived brightness is 81%, so black text on it reaches 13.78:1.
Should I use black or white text on #f3cf2e?
Black. It scores 13.78:1 against #f3cf2e, versus 1.52:1 for white — AAA at any size.
What is the complementary color of #f3cf2e?
#2E52F3 sits directly opposite on the wheel. Softer options are the split-complements #2EB5F3 and #6D2EF3, which give the same contrast with far less vibration.
What colors go well with #f3cf2e?
For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8C4B for secondary text, #2A83F7 as an accent and #796407 for hover and pressed states. For a palette, the analogous pair #F36D2E and #B5F32E stays calm, while #2E52F3 is the loudest partner.
What is #f3cf2e in CMYK for printing?
cmyk(0%, 15%, 81%, 5%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.
Is #f3cf2e warm or cool?
Warm — it scores 16 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F3A52E; nudged cooler, #D0F52C.