Skip to content

#f2f86c

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

RGB
242, 248, 108
HSL
63°, 91%, 70%
CMYK
2, 0, 57, 3
Luminance
0.8709

Every format

HEX#f2f86c
RGBrgb(242, 248, 108)
HSLhsl(63, 91%, 70%)
CMYKcmyk(2%, 0%, 57%, 3%)
LABlab(94.8 -19.8 65.1)
LCHlch(94.8 68.1 106.9)
OKLCHoklch(0.948 0.162 111.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2f86c on white: 1.14:1
AA ✗ fail · AA-large · AAA
Aa
#f2f86c on black: 18.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green97.3%
Blue42.4%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow56.5%
Key (black)2.7%

Color previews

#f2f86c text on a black background

contrast 18.42:1

Card sample

#f2f86c text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 248, 108, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 248, 108, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2f86c;
background: linear-gradient(135deg, #f2f86c, #95F86C);

Monochromatic scale

Palettes built from #f2f86c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2f86c in the Color Lab