Skip to content

#f1ba2f

a balanced, electric yellow · warm · closest name: orange

RGB
241, 186, 47
HSL
43°, 87%, 57%
CMYK
0, 23, 81, 6
Luminance
0.5402

Every format

HEX#f1ba2f
RGBrgb(241, 186, 47)
HSLhsl(43, 87%, 57%)
CMYKcmyk(0%, 23%, 81%, 6%)
LABlab(78.5 7.8 71.9)
LCHlch(78.5 72.3 83.8)
OKLCHoklch(0.817 0.155 85.0)

Copy-ready code

/* CSS */
color: #f1ba2f;
background-color: #f1ba2f;
/* Tailwind (arbitrary) */
class="text-[#f1ba2f] bg-[#f1ba2f]"
/* SCSS */
$brand: #f1ba2f;
/* SwiftUI */
Color(red: 0.945, green: 0.729, blue: 0.184)
/* Android */
Color.parseColor("#f1ba2f")

Accessibility — WCAG contrast

Aa
#f1ba2f on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#f1ba2f on black: 11.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.5%
Green72.9%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta22.8%
Yellow80.5%
Key (black)5.5%

Color previews

#f1ba2f text on a black background

contrast 11.80:1

Card sample

#f1ba2f text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #f1ba2f;
Background color
Panel with #f1ba2f background
background-color: #f1ba2f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #f1ba2f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(241, 186, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(241, 186, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f1ba2f;
background: linear-gradient(135deg, #f1ba2f, #A7F12F);

Monochromatic scale

Palettes built from #f1ba2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f1ba2f in the Color Lab