Skip to content

#f2f64f

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

RGB
242, 246, 79
HSL
61°, 90%, 64%
CMYK
2, 0, 68, 4
Luminance
0.8535

Every format

HEX#f2f64f
RGBrgb(242, 246, 79)
HSLhsl(61, 90%, 64%)
CMYKcmyk(2%, 0%, 68%, 4%)
LABlab(94.0 -20.6 75.8)
LCHlch(94.0 78.5 105.2)
OKLCHoklch(0.942 0.181 110.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2f64f on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#f2f64f on black: 18.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green96.5%
Blue31.0%

CMYK percentages

Cyan1.6%
Magenta0.0%
Yellow67.9%
Key (black)3.5%

Color previews

#f2f64f text on a black background

contrast 18.07:1

Card sample

#f2f64f text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 246, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 246, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2f64f;
background: linear-gradient(135deg, #f2f64f, #83F64F);

Monochromatic scale

Palettes built from #f2f64f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2f64f in the Color Lab