Skip to content

#f2ecac

a light, vivid yellow · warm · “Pale Goldenrod”

RGB
242, 236, 172
HSL
55°, 73%, 81%
CMYK
0, 3, 29, 5
Luminance
0.8185

At a glance

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

Hex
#f2ecac
Hue
55°
yellow
Saturation
73%
vivid
Lightness
81%
light
Brightness
95%
HSV value
Perceived
91%
weighted brightness
Luminance
0.8185
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
17.37:1
Closest name
Pale Goldenrod
ΔE2000 0.9
Where it sits
Hue55° of 360°
Saturation73%
Lightness81%
Temperature
Warm ← → Cool21% 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#f2ecac
RGBrgb(242, 236, 172)
HSLhsl(55, 73%, 81%)
CMYKcmyk(0%, 3%, 29%, 5%)
LABlab(92.5 -7.6 31.8)
LCHlch(92.5 32.7 103.4)
OKLCHoklch(0.933 0.082 103.3)
Decimal15920300
Display P3color(display-p3 0.949 0.925 0.675)

Copy-ready code

/* CSS */
color: #f2ecac;
background-color: #f2ecac;
/* Tailwind (arbitrary) */
class="text-[#f2ecac] bg-[#f2ecac]"
/* SCSS */
$brand: #f2ecac;
/* SwiftUI */
Color(red: 0.949, green: 0.925, blue: 0.675)
/* Android */
Color.parseColor("#f2ecac")
/* Flutter */
Color(0xFFF2ECAC)
/* Python / OpenCV (BGR) */
(172, 236, 242)

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

Accessibility — WCAG contrast

Aa
#f2ecac on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#f2ecac on black: 17.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F7E7A8
deuteranopia · #FAEBAE
tritanopia · #FCE4DB

Color scale — 50 to 950

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

#FCFBF3
#F8F7E7
#F3F0C9
#f2ecac
#E8DE6E
#E1D33D
#D4C421
#B0A41C
#8D8316
#665F14
#403C0D
Base = 300Lightest = 50 · #FCFBF3Darkest = 950 · #403C0D
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F8F7E7;
  --brand-200: #F3F0C9;
  --brand-300: #f2ecac;
  --brand-400: #E8DE6E;
  --brand-500: #E1D33D;
  --brand-600: #D4C421;
  --brand-700: #B0A41C;
  --brand-800: #8D8316;
  --brand-900: #665F14;
  --brand-950: #403C0D;
  --brand: #f2ecac;
  --brand-ink: #000000;
}

Colors that work with #f2ecac

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#EDE9C0
Hairlines and dividers
Muted text#9B944B
Captions on the surface
Accent#174DB5
Second voice, not a rival
Dark variant#6E6611
Hover, pressed, headers
Light variant#FCFAE9
Selected rows, tints
Dark surface#242314
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 #f2ecac

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#ACB2F2
Analogous left#F2C9AC
Analogous right#D5F2AC
Split-complement 1#ACD5F2
Split-complement 2#C9ACF2
Triadic 1#ACF2EC
Triadic 2#ECACF2
Tetradic#ACF2C9

RGB percentages

Red94.9%
Green92.5%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta2.5%
Yellow28.9%
Key (black)5.1%

Color previews

#f2ecac text on a black background

contrast 17.37:1

Card sample

#f2ecac text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2ecac

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.

#f2ecac 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

Converts to four-color process without much drama. Proof it anyway.

#f2ecac, answered

What color is #f2ecac?

#f2ecac is a light vivid yellow — the CSS keyword Pale Goldenrod. It sits at 55° on the hue wheel with 73% saturation and 81% lightness, which reads as warm.

What is the RGB value of #f2ecac?

rgb(242, 236, 172) — 242 red, 236 green and 172 blue out of 255, or 94.9% / 92.5% / 67.5% by channel.

Is #f2ecac a light or a dark color?

It is a light color. Relative luminance is 0.8185 and perceived brightness is 91%, so black text on it reaches 17.37:1.

Should I use black or white text on #f2ecac?

Black. It scores 17.37:1 against #f2ecac, versus 1.21:1 for white — AAA at any size.

What is the complementary color of #f2ecac?

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

What colors go well with #f2ecac?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B944B for secondary text, #174DB5 as an accent and #6E6611 for hover and pressed states. For a palette, the analogous pair #F2C9AC and #D5F2AC stays calm, while #ACB2F2 is the loudest partner.

What is #f2ecac in CMYK for printing?

cmyk(0%, 3%, 29%, 5%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #f2ecac warm or cool?

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

Work with #f2ecac in the Color Lab