Skip to content

#f2f66f

a light, electric yellow · cool · closest name: khaki

RGB
242, 246, 111
HSL
62°, 88%, 70%
CMYK
2, 0, 55, 4
Luminance
0.8594

Every format

HEX#f2f66f
RGBrgb(242, 246, 111)
HSLhsl(62, 88%, 70%)
CMYKcmyk(2%, 0%, 55%, 4%)
LABlab(94.3 -18.6 63.3)
LCHlch(94.3 66.0 106.4)
OKLCHoklch(0.944 0.157 110.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2f66f on white: 1.15:1
AA ✗ fail · AA-large · AAA
Aa
#f2f66f on black: 18.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green96.5%
Blue43.5%

CMYK percentages

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

Color previews

#f2f66f text on a black background

contrast 18.19:1

Card sample

#f2f66f text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2f66f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2f66f in the Color Lab