Skip to content

#fcc040

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

RGB
252, 192, 64
HSL
41°, 97%, 62%
CMYK
0, 24, 75, 1
Luminance
0.5876

At a glance

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

Hex
#fcc040
Hue
41°
yellow
Saturation
97%
electric
Lightness
62%
balanced
Brightness
99%
HSV value
Perceived
79%
weighted brightness
Luminance
0.5876
WCAG relative
Temperature
Warm
9/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
12.75:1
Closest name
Goldenrod
ΔE2000 7.5
Where it sits
Hue41° of 360°
Saturation97%
Lightness62%
Temperature
Warm ← → Cool9% 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#fcc040
RGBrgb(252, 192, 64)
HSLhsl(41, 97%, 62%)
CMYKcmyk(0%, 24%, 75%, 1%)
LABlab(81.2 9.9 69.0)
LCHlch(81.2 69.7 81.8)
OKLCHoklch(0.841 0.153 82.2)
Decimal16564288
Display P3color(display-p3 0.988 0.753 0.251)

Copy-ready code

/* CSS */
color: #fcc040;
background-color: #fcc040;
/* Tailwind (arbitrary) */
class="text-[#fcc040] bg-[#fcc040]"
/* SCSS */
$brand: #fcc040;
/* SwiftUI */
Color(red: 0.988, green: 0.753, blue: 0.251)
/* Android */
Color.parseColor("#fcc040")
/* Flutter */
Color(0xFFFCC040)
/* Python / OpenCV (BGR) */
(64, 192, 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 #fcc040 · 12.75:1
Use #000000AAA at every size.
Aa
White text · 1.65:1
AA fail · AA large fail · AAA fail
Aa
Black text · 12.75:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #fcc040 as text scores 1.65:1 on white and 12.75:1 on black.

Accessibility — WCAG contrast

Aa
#fcc040 on white: 1.65:1
AA ✗ fail · AA-large · AAA
Aa
#fcc040 on black: 12.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D9C12C
deuteranopia · #E7D046
tritanopia · #FFAEA7

Color scale — 50 to 950

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

#FDFAF1
#FCF4E4
#FBE8C1
#FDDB91
#fcc040
#FCB622
#F1A504
#C98A03
#A16E03
#745107
#483304
Base = 400Lightest = 50 · #FDFAF1Darkest = 950 · #483304
:root {
  --brand-50: #FDFAF1;
  --brand-100: #FCF4E4;
  --brand-200: #FBE8C1;
  --brand-300: #FDDB91;
  --brand-400: #fcc040;
  --brand-500: #FCB622;
  --brand-600: #F1A504;
  --brand-700: #C98A03;
  --brand-800: #A16E03;
  --brand-900: #745107;
  --brand-950: #483304;
  --brand: #fcc040;
  --brand-ink: #000000;
}

Colors that work with #fcc040

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#FAF8F4
Tinted page background
Border#EDDEC0
Hairlines and dividers
Muted text#9B814B
Captions on the surface
Accent#0074CC
Second voice, not a rival
Dark variant#7E5602
Hover, pressed, headers
Light variant#FFF7E6
Selected rows, tints
Dark surface#241F14
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 #fcc040

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#407CFC
Analogous left#FC6240
Analogous right#DAFC40
Split-complement 1#40DAFC
Split-complement 2#6240FC
Triadic 1#40FCC0
Triadic 2#C040FC
Tetradic#40FC62

RGB percentages

Red98.8%
Green75.3%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta23.8%
Yellow74.6%
Key (black)1.2%

Color previews

#fcc040 text on a black background

contrast 12.75:1

Card sample

#fcc040 text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(252, 192, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 192, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fcc040;
background: linear-gradient(135deg, #fcc040, #BBFC40);

Monochromatic scale

Palettes built from #fcc040

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.

#fcc040 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.

#fcc040, answered

What color is #fcc040?

#fcc040 is a balanced electric yellow, closest to Goldenrod (ΔE2000 7.5). It sits at 41° on the hue wheel with 97% saturation and 62% lightness, which reads as warm.

What is the RGB value of #fcc040?

rgb(252, 192, 64) — 252 red, 192 green and 64 blue out of 255, or 98.8% / 75.3% / 25.1% by channel.

Is #fcc040 a light or a dark color?

It is a light color. Relative luminance is 0.5876 and perceived brightness is 79%, so black text on it reaches 12.75:1.

Should I use black or white text on #fcc040?

Black. It scores 12.75:1 against #fcc040, versus 1.65:1 for white — AAA at any size.

What is the complementary color of #fcc040?

#407CFC sits directly opposite on the wheel. Softer options are the split-complements #40DAFC and #6240FC, which give the same contrast with far less vibration.

What colors go well with #fcc040?

For interface work: #FAF8F4 as the surface, #EDDEC0 for borders, #9B814B for secondary text, #0074CC as an accent and #7E5602 for hover and pressed states. For a palette, the analogous pair #FC6240 and #DAFC40 stays calm, while #407CFC is the loudest partner.

What is #fcc040 in CMYK for printing?

cmyk(0%, 24%, 75%, 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 #fcc040 warm or cool?

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

Work with #fcc040 in the Color Lab