Skip to content

#f2f56f

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

RGB
242, 245, 111
HSL
61°, 87%, 70%
CMYK
1, 0, 55, 4
Luminance
0.8533

Every format

HEX#f2f56f
RGBrgb(242, 245, 111)
HSLhsl(61, 87%, 70%)
CMYKcmyk(1%, 0%, 55%, 4%)
LABlab(94.0 -18.2 63.0)
LCHlch(94.0 65.5 106.1)
OKLCHoklch(0.942 0.156 110.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan1.2%
Magenta0.0%
Yellow54.7%
Key (black)3.9%

Color previews

#f2f56f text on a black background

contrast 18.07:1

Card sample

#f2f56f text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2f56f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2f56f in the Color Lab