Skip to content

#f2f55f

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

RGB
242, 245, 95
HSL
61°, 88%, 67%
CMYK
1, 0, 61, 4
Luminance
0.8501

Every format

HEX#f2f55f
RGBrgb(242, 245, 95)
HSLhsl(61, 88%, 67%)
CMYKcmyk(1%, 0%, 61%, 4%)
LABlab(93.9 -19.3 69.5)
LCHlch(93.9 72.2 105.5)
OKLCHoklch(0.941 0.169 110.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2f55f on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#f2f55f on black: 18.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green96.1%
Blue37.3%

CMYK percentages

Cyan1.2%
Magenta0.0%
Yellow61.2%
Key (black)3.9%

Color previews

#f2f55f text on a black background

contrast 18.00:1

Card sample

#f2f55f text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2f55f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2f55f in the Color Lab