Skip to content

#f6df50

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

RGB
246, 223, 80
HSL
52°, 90%, 64%
CMYK
0, 9, 68, 4
Luminance
0.7295

Every format

HEX#f6df50
RGBrgb(246, 223, 80)
HSLhsl(52, 90%, 64%)
CMYKcmyk(0%, 9%, 68%, 4%)
LABlab(88.4 -7.7 69.9)
LCHlch(88.4 70.3 96.3)
OKLCHoklch(0.898 0.159 100.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red96.5%
Green87.5%
Blue31.4%

CMYK percentages

Cyan0.0%
Magenta9.3%
Yellow67.5%
Key (black)3.5%

Color previews

#f6df50 text on a black background

contrast 15.59:1

Card sample

#f6df50 text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f6df50

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f6df50 in the Color Lab