Skip to content

#f2eb4c

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

RGB
242, 235, 76
HSL
58°, 87%, 62%
CMYK
0, 3, 69, 5
Luminance
0.7882

Every format

HEX#f2eb4c
RGBrgb(242, 235, 76)
HSLhsl(58, 87%, 62%)
CMYKcmyk(0%, 3%, 69%, 5%)
LABlab(91.2 -15.5 74.0)
LCHlch(91.2 75.6 101.8)
OKLCHoklch(0.918 0.172 106.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2eb4c on white: 1.25:1
AA ✗ fail · AA-large · AAA
Aa
#f2eb4c on black: 16.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green92.2%
Blue29.8%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow68.6%
Key (black)5.1%

Color previews

#f2eb4c text on a black background

contrast 16.76:1

Card sample

#f2eb4c text on a white background

contrast 1.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2eb4c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2eb4c in the Color Lab