Skip to content

#f2da3d

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

RGB
242, 218, 61
HSL
52°, 87%, 59%
CMYK
0, 10, 75, 5
Luminance
0.6936

Every format

HEX#f2da3d
RGBrgb(242, 218, 61)
HSLhsl(52, 87%, 59%)
CMYKcmyk(0%, 10%, 75%, 5%)
LABlab(86.7 -7.7 74.9)
LCHlch(86.7 75.3 95.9)
OKLCHoklch(0.883 0.167 100.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2da3d on white: 1.41:1
AA ✗ fail · AA-large · AAA
Aa
#f2da3d on black: 14.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green85.5%
Blue23.9%

CMYK percentages

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

Color previews

#f2da3d text on a black background

contrast 14.87:1

Card sample

#f2da3d text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2da3d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2da3d in the Color Lab