Skip to content

#f6df4d

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

RGB
246, 223, 77
HSL
52°, 90%, 63%
CMYK
0, 9, 69, 4
Luminance
0.7290

Every format

HEX#f6df4d
RGBrgb(246, 223, 77)
HSLhsl(52, 90%, 63%)
CMYKcmyk(0%, 9%, 69%, 4%)
LABlab(88.4 -7.8 71.0)
LCHlch(88.4 71.4 96.3)
OKLCHoklch(0.897 0.161 100.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f6df4d on white: 1.35:1
AA ✗ fail · AA-large · AAA
Aa
#f6df4d on black: 15.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.5%
Green87.5%
Blue30.2%

CMYK percentages

Cyan0.0%
Magenta9.3%
Yellow68.7%
Key (black)3.5%

Color previews

#f6df4d text on a black background

contrast 15.58:1

Card sample

#f6df4d text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(246, 223, 77, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(246, 223, 77, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f6df4d;
background: linear-gradient(135deg, #f6df4d, #9CF64D);

Monochromatic scale

Palettes built from #f6df4d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f6df4d in the Color Lab