Skip to content

#f2ff1b

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

RGB
242, 255, 27
HSL
63°, 100%, 55%
CMYK
5, 0, 89, 0
Luminance
0.9048

Every format

HEX#f2ff1b
RGBrgb(242, 255, 27)
HSLhsl(63, 100%, 55%)
CMYKcmyk(5%, 0%, 89%, 0%)
LABlab(96.2 -26.6 90.9)
LCHlch(96.2 94.7 106.3)
OKLCHoklch(0.958 0.211 113.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ff1b on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#f2ff1b on black: 19.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green100.0%
Blue10.6%

CMYK percentages

Cyan5.1%
Magenta0.0%
Yellow89.4%
Key (black)0.0%

Color previews

#f2ff1b text on a black background

contrast 19.10:1

Card sample

#f2ff1b text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 255, 27, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 255, 27, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2ff1b;
background: linear-gradient(135deg, #f2ff1b, #5AFF1B);

Monochromatic scale

Palettes built from #f2ff1b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ff1b in the Color Lab