Skip to content

#f0f2cd

a pale, vivid yellow · warm · closest name: Light Goldenrod Yellow

RGB
240, 242, 205
HSL
63°, 59%, 88%
CMYK
1, 0, 15, 5
Luminance
0.8644

At a glance

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

Hex
#f0f2cd
Hue
63°
yellow
Saturation
59%
vivid
Lightness
88%
pale
Brightness
95%
HSV value
Perceived
93%
weighted brightness
Luminance
0.8644
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
18.29:1
Closest name
Light Goldenrod Yellow
ΔE2000 2
Where it sits
Hue63° of 360°
Saturation59%
Lightness88%
Temperature
Warm ← → Cool28% 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#f0f2cd
RGBrgb(240, 242, 205)
HSLhsl(63, 59%, 88%)
CMYKcmyk(1%, 0%, 15%, 5%)
LABlab(94.5 -6.8 17.7)
LCHlch(94.5 18.9 110.9)
OKLCHoklch(0.950 0.048 109.8)
Decimal15790797
Display P3color(display-p3 0.941 0.949 0.804)

Copy-ready code

/* CSS */
color: #f0f2cd;
background-color: #f0f2cd;
/* Tailwind (arbitrary) */
class="text-[#f0f2cd] bg-[#f0f2cd]"
/* SCSS */
$brand: #f0f2cd;
/* SwiftUI */
Color(red: 0.941, green: 0.949, blue: 0.804)
/* Android */
Color.parseColor("#f0f2cd")
/* Flutter */
Color(0xFFF0F2CD)
/* Python / OpenCV (BGR) */
(205, 242, 240)

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

Accessibility — WCAG contrast

Aa
#f0f2cd on white: 1.15:1
AA ✗ fail · AA-large · AAA
Aa
#f0f2cd on black: 18.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F8EECB
deuteranopia · #F9F0CE
tritanopia · #F5EDE8

Color scale — 50 to 950

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

#FAFBF4
#F6F7E9
#f0f2cd
#E4E8A6
#D7DC79
#CAD14D
#BBC233
#9BA22A
#7C8122
#5B5E1C
#393B12
Base = 200Lightest = 50 · #FAFBF4Darkest = 950 · #393B12
:root {
  --brand-50: #FAFBF4;
  --brand-100: #F6F7E9;
  --brand-200: #f0f2cd;
  --brand-300: #E4E8A6;
  --brand-400: #D7DC79;
  --brand-500: #CAD14D;
  --brand-600: #BBC233;
  --brand-700: #9BA22A;
  --brand-800: #7C8122;
  --brand-900: #5B5E1C;
  --brand-950: #393B12;
  --brand: #f0f2cd;
  --brand-ink: #000000;
}

Colors that work with #f0f2cd

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#EAEDC0
Hairlines and dividers
Muted text#979B4B
Captions on the surface
Accent#273EA5
Second voice, not a rival
Dark variant#61651A
Hover, pressed, headers
Light variant#F9FAEB
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 #f0f2cd

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#CFCDF2
Analogous left#F2E1CD
Analogous right#DDF2CD
Split-complement 1#CDDDF2
Split-complement 2#E1CDF2
Triadic 1#CDF0F2
Triadic 2#F2CDF0
Tetradic#CDF2E1

RGB percentages

Red94.1%
Green94.9%
Blue80.4%

CMYK percentages

Cyan0.8%
Magenta0.0%
Yellow15.3%
Key (black)5.1%

Color previews

#f0f2cd text on a black background

contrast 18.29:1

Card sample

#f0f2cd text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f2cd

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.

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

Very light tints can drop out on uncoated stock; check it at 100% size before signing off.

#f0f2cd, answered

What color is #f0f2cd?

#f0f2cd is a pale vivid yellow, closest to Light Goldenrod Yellow (ΔE2000 2). It sits at 63° on the hue wheel with 59% saturation and 88% lightness, which reads as warm.

What is the RGB value of #f0f2cd?

rgb(240, 242, 205) — 240 red, 242 green and 205 blue out of 255, or 94.1% / 94.9% / 80.4% by channel.

Is #f0f2cd a light or a dark color?

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

Should I use black or white text on #f0f2cd?

Black. It scores 18.29:1 against #f0f2cd, versus 1.15:1 for white — AAA at any size.

What is the complementary color of #f0f2cd?

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

What colors go well with #f0f2cd?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #979B4B for secondary text, #273EA5 as an accent and #61651A for hover and pressed states. For a palette, the analogous pair #F2E1CD and #DDF2CD stays calm, while #CFCDF2 is the loudest partner.

What is #f0f2cd in CMYK for printing?

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

Is #f0f2cd warm or cool?

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

Work with #f0f2cd in the Color Lab