Skip to content

#f2df3d

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

RGB
242, 223, 61
HSL
54°, 87%, 59%
CMYK
0, 8, 75, 5
Luminance
0.7199

Every format

HEX#f2df3d
RGBrgb(242, 223, 61)
HSLhsl(54, 87%, 59%)
CMYKcmyk(0%, 8%, 75%, 5%)
LABlab(88.0 -10.2 76.1)
LCHlch(88.0 76.8 97.7)
OKLCHoklch(0.893 0.171 102.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2df3d on white: 1.36:1
AA ✗ fail · AA-large · AAA
Aa
#f2df3d on black: 15.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green87.5%
Blue23.9%

CMYK percentages

Cyan0.0%
Magenta7.9%
Yellow74.8%
Key (black)5.1%

Color previews

#f2df3d text on a black background

contrast 15.40:1

Card sample

#f2df3d text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2df3d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2df3d in the Color Lab