Skip to content

#f5f7ac

a light, electric yellow · warm · closest name: Pale Goldenrod

RGB
245, 247, 172
HSL
62°, 82%, 82%
CMYK
1, 0, 30, 3
Luminance
0.8891

At a glance

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

Hex
#f5f7ac
Hue
62°
yellow
Saturation
82%
electric
Lightness
82%
light
Brightness
97%
HSV value
Perceived
94%
weighted brightness
Luminance
0.8891
WCAG relative
Temperature
Warm
26/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
18.78:1
Closest name
Pale Goldenrod
ΔE2000 4.2
Where it sits
Hue62° of 360°
Saturation82%
Lightness82%
Temperature
Warm ← → Cool26% 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#f5f7ac
RGBrgb(245, 247, 172)
HSLhsl(62, 82%, 82%)
CMYKcmyk(1%, 0%, 30%, 3%)
LABlab(95.5 -11.9 35.9)
LCHlch(95.5 37.9 108.4)
OKLCHoklch(0.957 0.095 109.4)
Decimal16119724
Display P3color(display-p3 0.961 0.969 0.675)

Copy-ready code

/* CSS */
color: #f5f7ac;
background-color: #f5f7ac;
/* Tailwind (arbitrary) */
class="text-[#f5f7ac] bg-[#f5f7ac]"
/* SCSS */
$brand: #f5f7ac;
/* SwiftUI */
Color(red: 0.961, green: 0.969, blue: 0.675)
/* Android */
Color.parseColor("#f5f7ac")
/* Flutter */
Color(0xFFF5F7AC)
/* Python / OpenCV (BGR) */
(172, 247, 245)

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

Accessibility — WCAG contrast

Aa
#f5f7ac on white: 1.12:1
AA ✗ fail · AA-large · AAA
Aa
#f5f7ac on black: 18.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFF1A7
deuteranopia · #FFF4AF
tritanopia · #FFEEE4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #f5f7ac 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.

#FCFCF2
#F9FAE6
#F5F6C6
#f5f7ac
#ECF066
#E6EB32
#DADF16
#B6BA12
#91950E
#696C0F
#424309
Base = 300Lightest = 50 · #FCFCF2Darkest = 950 · #424309
:root {
  --brand-50: #FCFCF2;
  --brand-100: #F9FAE6;
  --brand-200: #F5F6C6;
  --brand-300: #f5f7ac;
  --brand-400: #ECF066;
  --brand-500: #E6EB32;
  --brand-600: #DADF16;
  --brand-700: #B6BA12;
  --brand-800: #91950E;
  --brand-900: #696C0F;
  --brand-950: #424309;
  --brand: #f5f7ac;
  --brand-ink: #000000;
}

Colors that work with #f5f7ac

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#EBEDC0
Hairlines and dividers
Muted text#999B4B
Captions on the surface
Accent#0D36BF
Second voice, not a rival
Dark variant#71740B
Hover, pressed, headers
Light variant#FCFDE8
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 #f5f7ac

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#AEACF7
Analogous left#F7D4AC
Analogous right#D0F7AC
Split-complement 1#ACD0F7
Split-complement 2#D4ACF7
Triadic 1#ACF5F7
Triadic 2#F7ACF5
Tetradic#ACF7D4

RGB percentages

Red96.1%
Green96.9%
Blue67.5%

CMYK percentages

Cyan0.8%
Magenta0.0%
Yellow30.4%
Key (black)3.1%

Color previews

#f5f7ac text on a black background

contrast 18.78:1

Card sample

#f5f7ac text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f5f7ac

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.

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

#f5f7ac, answered

What color is #f5f7ac?

#f5f7ac is a light electric yellow, closest to Pale Goldenrod (ΔE2000 4.2). It sits at 62° on the hue wheel with 82% saturation and 82% lightness, which reads as warm.

What is the RGB value of #f5f7ac?

rgb(245, 247, 172) — 245 red, 247 green and 172 blue out of 255, or 96.1% / 96.9% / 67.5% by channel.

Is #f5f7ac a light or a dark color?

It is a light color. Relative luminance is 0.8891 and perceived brightness is 94%, so black text on it reaches 18.78:1.

Should I use black or white text on #f5f7ac?

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

What is the complementary color of #f5f7ac?

#AEACF7 sits directly opposite on the wheel. Softer options are the split-complements #ACD0F7 and #D4ACF7, which give the same contrast with far less vibration.

What colors go well with #f5f7ac?

For interface work: #FAFAF4 as the surface, #EBEDC0 for borders, #999B4B for secondary text, #0D36BF as an accent and #71740B for hover and pressed states. For a palette, the analogous pair #F7D4AC and #D0F7AC stays calm, while #AEACF7 is the loudest partner.

What is #f5f7ac in CMYK for printing?

cmyk(1%, 0%, 30%, 3%). 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 #f5f7ac warm or cool?

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

Work with #f5f7ac in the Color Lab