#f1eb2e
a balanced, electric yellow · warm · closest name: Yellow
At a glance
Every number on this page in one read: what #f1eb2e 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 | #f1eb2e |
| RGB | rgb(241, 235, 46) |
| HSL | hsl(58, 87%, 56%) |
| CMYK | cmyk(0%, 3%, 81%, 6%) |
| LAB | lab(90.9 -17.1 82.9) |
| LCH | lch(90.9 84.7 101.6) |
| OKLCH | oklch(0.916 0.187 107.6) |
| Decimal | 15854382 |
| Display P3 | color(display-p3 0.945 0.922 0.180) |
Copy-ready code
/* CSS */
color: #f1eb2e;
background-color: #f1eb2e;
/* Tailwind (arbitrary) */
class="text-[#f1eb2e] bg-[#f1eb2e]"
/* SCSS */
$brand: #f1eb2e;
/* SwiftUI */
Color(red: 0.945, green: 0.922, blue: 0.180)
/* Android */
Color.parseColor("#f1eb2e")
/* Flutter */
Color(0xFFF1EB2E)
/* Python / OpenCV (BGR) */
(46, 235, 241)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. #f1eb2e 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: #FDFCF2;
--brand-100: #FAFAE5;
--brand-200: #F8F6C4;
--brand-300: #F8F596;
--brand-400: #F4F061;
--brand-500: #f1eb2e;
--brand-600: #E5DF0F;
--brand-700: #BFBA0D;
--brand-800: #99950A;
--brand-900: #6E6B0C;
--brand-950: #454307;
--brand: #f1eb2e;
--brand-ink: #000000;
}Colors that work with #f1eb2e
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 #f1eb2e
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 | #2E34F1 | Directly opposite — maximum tension | |
| Analogous left | #F18A2E | Neighbour, quieter | |
| Analogous right | #95F12E | Neighbour, quieter | |
| Split-complement 1 | #2E95F1 | Contrast without the clash | |
| Split-complement 2 | #8A2EF1 | Contrast without the clash | |
| Triadic 1 | #2EF1EB | Even thirds — balanced and loud | |
| Triadic 2 | #EB2EF1 | Even thirds — balanced and loud | |
| Tetradic | #2EF18A | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#f1eb2e text on a black background
contrast 16.66:1
#f1eb2e text on a white background
contrast 1.26:1
CSS3 live lab
The quick brown fox
color: #f1eb2e;
background-color: #f1eb2e;
Glowing headline
text-shadow: 2px 2px 8px #f1eb2e;
Soft neon halo
text-shadow: 0 0 14px rgba(241, 235, 46, 0.45);
box-shadow: 0 12px 32px -8px rgba(241, 235, 46, 0.45);
border: 3px solid #f1eb2e; background: linear-gradient(135deg, #f1eb2e, #75F12E);
Monochromatic scale
Palettes built from #f1eb2e
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: Dandelion (#f0e130) — ΔE2000 2.8 away, with its history, psychology and brand usage.
#f1eb2e 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.
#f1eb2e, answered
What color is #f1eb2e?
#f1eb2e is a balanced electric yellow, closest to Yellow (ΔE2000 4.6). It sits at 58° on the hue wheel with 87% saturation and 56% lightness, which reads as warm.
What is the RGB value of #f1eb2e?
rgb(241, 235, 46) — 241 red, 235 green and 46 blue out of 255, or 94.5% / 92.2% / 18% by channel.
Is #f1eb2e a light or a dark color?
It is a light color. Relative luminance is 0.7831 and perceived brightness is 88%, so black text on it reaches 16.66:1.
Should I use black or white text on #f1eb2e?
Black. It scores 16.66:1 against #f1eb2e, versus 1.26:1 for white — AAA at any size.
What is the complementary color of #f1eb2e?
#2E34F1 sits directly opposite on the wheel. Softer options are the split-complements #2E95F1 and #8A2EF1, which give the same contrast with far less vibration.
What colors go well with #f1eb2e?
For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B994B for secondary text, #2A63F5 as an accent and #777408 for hover and pressed states. For a palette, the analogous pair #F18A2E and #95F12E stays calm, while #2E34F1 is the loudest partner.
What is #f1eb2e in CMYK for printing?
cmyk(0%, 3%, 81%, 6%). 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 #f1eb2e warm or cool?
Warm — it scores 23 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F1B12E; nudged cooler, #B0F32C.