Skip to content

#f1ef1b

a balanced, electric yellow · cool · closest name: yellow

RGB
241, 239, 27
HSL
59°, 88%, 53%
CMYK
0, 1, 89, 6
Luminance
0.8051

Every format

HEX#f1ef1b
RGBrgb(241, 239, 27)
HSLhsl(59, 88%, 53%)
CMYKcmyk(0%, 1%, 89%, 6%)
LABlab(91.9 -19.4 87.5)
LCHlch(91.9 89.6 102.5)
OKLCHoklch(0.924 0.197 109.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f1ef1b on white: 1.23:1
AA ✗ fail · AA-large · AAA
Aa
#f1ef1b on black: 17.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.5%
Green93.7%
Blue10.6%

CMYK percentages

Cyan0.0%
Magenta0.8%
Yellow88.8%
Key (black)5.5%

Color previews

#f1ef1b text on a black background

contrast 17.10:1

Card sample

#f1ef1b text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(241, 239, 27, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(241, 239, 27, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f1ef1b;
background: linear-gradient(135deg, #f1ef1b, #64F11B);

Monochromatic scale

Palettes built from #f1ef1b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f1ef1b in the Color Lab