Skip to content

#fcd52f

a balanced, electric yellow · warm · closest name: Gold

RGB
252, 213, 47
HSL
49°, 97%, 59%
CMYK
0, 16, 81, 1
Luminance
0.6849

At a glance

Every number on this page in one read: what #fcd52f is made of, how bright it looks, and which way it leans.

Hex
#fcd52f
Hue
49°
yellow
Saturation
97%
electric
Lightness
59%
balanced
Brightness
99%
HSV value
Perceived
84%
weighted brightness
Luminance
0.6849
WCAG relative
Temperature
Warm
16/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
14.70:1
Closest name
Gold
ΔE2000 1.8
Where it sits
Hue49° of 360°
Saturation97%
Lightness59%
Temperature
Warm ← → Cool16% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#fcd52f
RGBrgb(252, 213, 47)
HSLhsl(49, 97%, 59%)
CMYKcmyk(0%, 16%, 81%, 1%)
LABlab(86.3 -1.5 79.1)
LCHlch(86.3 79.1 91.1)
OKLCHoklch(0.881 0.170 94.5)
Decimal16569647
Display P3color(display-p3 0.988 0.835 0.184)

Copy-ready code

/* CSS */
color: #fcd52f;
background-color: #fcd52f;
/* Tailwind (arbitrary) */
class="text-[#fcd52f] bg-[#fcd52f]"
/* SCSS */
$brand: #fcd52f;
/* SwiftUI */
Color(red: 0.988, green: 0.835, blue: 0.184)
/* Android */
Color.parseColor("#fcd52f")
/* Flutter */
Color(0xFFFCD52F)
/* Python / OpenCV (BGR) */
(47, 213, 252)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #fcd52f · 14.70:1
Use #000000AAA at every size.
Aa
White text · 1.43:1
AA fail · AA large fail · AAA fail
Aa
Black text · 14.70:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #fcd52f as text scores 1.43:1 on white and 14.70:1 on black.

Accessibility — WCAG contrast

Aa
#fcd52f on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#fcd52f on black: 14.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #ECD100
deuteranopia · #F6DD3C
tritanopia · #FFC3B7

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #fcd52f is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDFBF1
#FCF7E4
#FBF0C1
#FDE990
#FDDE59
#fcd52f
#F1C403
#C9A303
#A18302
#745F06
#483B04
Base = 500Lightest = 50 · #FDFBF1Darkest = 950 · #483B04
:root {
  --brand-50: #FDFBF1;
  --brand-100: #FCF7E4;
  --brand-200: #FBF0C1;
  --brand-300: #FDE990;
  --brand-400: #FDDE59;
  --brand-500: #fcd52f;
  --brand-600: #F1C403;
  --brand-700: #C9A303;
  --brand-800: #A18302;
  --brand-900: #745F06;
  --brand-950: #483B04;
  --brand: #fcd52f;
  --brand-ink: #000000;
}

Colors that work with #fcd52f

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF9F4
Tinted page background
Border#EDE4C0
Hairlines and dividers
Muted text#9B8C4B
Captions on the surface
Accent#2C89FF
Second voice, not a rival
Dark variant#7E6602
Hover, pressed, headers
Light variant#FFFAE6
Selected rows, tints
Dark surface#242114
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #fcd52f

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#2F56FC
Analogous left#FC6E2F
Analogous right#BCFC2F
Split-complement 1#2FBCFC
Split-complement 2#6E2FFC
Triadic 1#2FFCD5
Triadic 2#D52FFC
Tetradic#2FFC6E

RGB percentages

Red98.8%
Green83.5%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta15.5%
Yellow81.3%
Key (black)1.2%

Color previews

#fcd52f text on a black background

contrast 14.70:1

Card sample

#fcd52f text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(252, 213, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 213, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fcd52f;
background: linear-gradient(135deg, #fcd52f, #9AFC2F);

Monochromatic scale

Palettes built from #fcd52f

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#fcd52f in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#fcd52f, answered

What color is #fcd52f?

#fcd52f is a balanced electric yellow, closest to Gold (ΔE2000 1.8). It sits at 49° on the hue wheel with 97% saturation and 59% lightness, which reads as warm.

What is the RGB value of #fcd52f?

rgb(252, 213, 47) — 252 red, 213 green and 47 blue out of 255, or 98.8% / 83.5% / 18.4% by channel.

Is #fcd52f a light or a dark color?

It is a light color. Relative luminance is 0.6849 and perceived brightness is 84%, so black text on it reaches 14.70:1.

Should I use black or white text on #fcd52f?

Black. It scores 14.70:1 against #fcd52f, versus 1.43:1 for white — AAA at any size.

What is the complementary color of #fcd52f?

#2F56FC sits directly opposite on the wheel. Softer options are the split-complements #2FBCFC and #6E2FFC, which give the same contrast with far less vibration.

What colors go well with #fcd52f?

For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8C4B for secondary text, #2C89FF as an accent and #7E6602 for hover and pressed states. For a palette, the analogous pair #FC6E2F and #BCFC2F stays calm, while #2F56FC is the loudest partner.

What is #fcd52f in CMYK for printing?

cmyk(0%, 16%, 81%, 1%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #fcd52f warm or cool?

Warm — it scores 16 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FCAB2F; nudged cooler, #D9FE2D.

Work with #fcd52f in the Color Lab