Skip to content

#fadf2f

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

RGB
250, 223, 47
HSL
52°, 95%, 58%
CMYK
0, 11, 81, 2
Luminance
0.7330

Every format

HEX#fadf2f
RGBrgb(250, 223, 47)
HSLhsl(52, 95%, 58%)
CMYKcmyk(0%, 11%, 81%, 2%)
LABlab(88.6 -7.3 81.0)
LCHlch(88.6 81.3 95.2)
OKLCHoklch(0.899 0.177 99.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fadf2f on white: 1.34:1
AA ✗ fail · AA-large · AAA
Aa
#fadf2f on black: 15.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.0%
Green87.5%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta10.8%
Yellow81.2%
Key (black)2.0%

Color previews

#fadf2f text on a black background

contrast 15.66:1

Card sample

#fadf2f text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fadf2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fadf2f in the Color Lab