Skip to content

#fdf77a

a light, electric yellow · warm · closest name: Khaki

RGB
253, 247, 122
HSL
57°, 97%, 74%
CMYK
0, 2, 52, 1
Luminance
0.8881

At a glance

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

Hex
#fdf77a
Hue
57°
yellow
Saturation
97%
electric
Lightness
74%
light
Brightness
99%
HSV value
Perceived
93%
weighted brightness
Luminance
0.8881
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
18.76:1
Closest name
Khaki
ΔE2000 5.7
Where it sits
Hue57° of 360°
Saturation97%
Lightness74%
Temperature
Warm ← → Cool23% 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#fdf77a
RGBrgb(253, 247, 122)
HSLhsl(57, 97%, 74%)
CMYKcmyk(0%, 2%, 52%, 1%)
LABlab(95.5 -13.9 60.0)
LCHlch(95.5 61.6 103.1)
OKLCHoklch(0.956 0.147 106.4)
Decimal16643962
Display P3color(display-p3 0.992 0.969 0.478)

Copy-ready code

/* CSS */
color: #fdf77a;
background-color: #fdf77a;
/* Tailwind (arbitrary) */
class="text-[#fdf77a] bg-[#fdf77a]"
/* SCSS */
$brand: #fdf77a;
/* SwiftUI */
Color(red: 0.992, green: 0.969, blue: 0.478)
/* Android */
Color.parseColor("#fdf77a")
/* Flutter */
Color(0xFFFDF77A)
/* Python / OpenCV (BGR) */
(122, 247, 253)

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 #fdf77a · 18.76:1
Use #000000AAA at every size.
Aa
White text · 1.12:1
AA fail · AA large fail · AAA fail
Aa
Black text · 18.76:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #fdf77a as text scores 1.12:1 on white and 18.76:1 on black.

Accessibility — WCAG contrast

Aa
#fdf77a on white: 1.12:1
AA ✗ fail · AA-large · AAA
Aa
#fdf77a on black: 18.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFEF6E
deuteranopia · #FFF580
tritanopia · #FFE9DB

Color scale — 50 to 950

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

#FDFDF1
#FCFBE4
#FBF8C1
#fdf77a
#FCF559
#FCF222
#F1E604
#C9C003
#A19A02
#746F07
#484504
Base = 300Lightest = 50 · #FDFDF1Darkest = 950 · #484504
:root {
  --brand-50: #FDFDF1;
  --brand-100: #FCFBE4;
  --brand-200: #FBF8C1;
  --brand-300: #fdf77a;
  --brand-400: #FCF559;
  --brand-500: #FCF222;
  --brand-600: #F1E604;
  --brand-700: #C9C003;
  --brand-800: #A19A02;
  --brand-900: #746F07;
  --brand-950: #484504;
  --brand: #fdf77a;
  --brand-ink: #000000;
}

Colors that work with #fdf77a

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#FAFAF4
Tinted page background
Border#EDEBC0
Hairlines and dividers
Muted text#9B974B
Captions on the surface
Accent#003DCC
Second voice, not a rival
Dark variant#7E7802
Hover, pressed, headers
Light variant#FFFEE6
Selected rows, tints
Dark surface#242414
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 #fdf77a

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
  • Card and section backgrounds
  • 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
  • White text placed on it
  • 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#7A80FD
Analogous left#FDB67A
Analogous right#C1FD7A
Split-complement 1#7AC1FD
Split-complement 2#B67AFD
Triadic 1#7AFDF7
Triadic 2#F77AFD
Tetradic#7AFDB6

RGB percentages

Red99.2%
Green96.9%
Blue47.8%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow51.8%
Key (black)0.8%

Color previews

#fdf77a text on a black background

contrast 18.76:1

Card sample

#fdf77a text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(253, 247, 122, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 247, 122, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdf77a;
background: linear-gradient(135deg, #fdf77a, #ABFD7A);

Monochromatic scale

Palettes built from #fdf77a

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.

#fdf77a 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#fdf77a, answered

What color is #fdf77a?

#fdf77a is a light electric yellow, closest to Khaki (ΔE2000 5.7). It sits at 57° on the hue wheel with 97% saturation and 74% lightness, which reads as warm.

What is the RGB value of #fdf77a?

rgb(253, 247, 122) — 253 red, 247 green and 122 blue out of 255, or 99.2% / 96.9% / 47.8% by channel.

Is #fdf77a a light or a dark color?

It is a light color. Relative luminance is 0.8881 and perceived brightness is 93%, so black text on it reaches 18.76:1.

Should I use black or white text on #fdf77a?

Black. It scores 18.76:1 against #fdf77a, versus 1.12:1 for white — AAA at any size.

What is the complementary color of #fdf77a?

#7A80FD sits directly opposite on the wheel. Softer options are the split-complements #7AC1FD and #B67AFD, which give the same contrast with far less vibration.

What colors go well with #fdf77a?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B974B for secondary text, #003DCC as an accent and #7E7802 for hover and pressed states. For a palette, the analogous pair #FDB67A and #C1FD7A stays calm, while #7A80FD is the loudest partner.

What is #fdf77a in CMYK for printing?

cmyk(0%, 2%, 52%, 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 #fdf77a warm or cool?

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

Work with #fdf77a in the Color Lab