Skip to content

#f5eccc

a pale, vivid yellow · warm · closest name: Corn Silk

RGB
245, 236, 204
HSL
47°, 67%, 88%
CMYK
0, 4, 17, 4
Luminance
0.8376

At a glance

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

Hex
#f5eccc
Hue
47°
yellow
Saturation
67%
vivid
Lightness
88%
pale
Brightness
96%
HSV value
Perceived
92%
weighted brightness
Luminance
0.8376
WCAG relative
Temperature
Warm
14/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
17.75:1
Closest name
Corn Silk
ΔE2000 2.8
Where it sits
Hue47° of 360°
Saturation67%
Lightness88%
Temperature
Warm ← → Cool14% 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#f5eccc
RGBrgb(245, 236, 204)
HSLhsl(47, 67%, 88%)
CMYKcmyk(0%, 4%, 17%, 4%)
LABlab(93.3 -2.1 16.6)
LCHlch(93.3 16.8 97.2)
OKLCHoklch(0.942 0.043 94.1)
Decimal16116940
Display P3color(display-p3 0.961 0.925 0.800)

Copy-ready code

/* CSS */
color: #f5eccc;
background-color: #f5eccc;
/* Tailwind (arbitrary) */
class="text-[#f5eccc] bg-[#f5eccc]"
/* SCSS */
$brand: #f5eccc;
/* SwiftUI */
Color(red: 0.961, green: 0.925, blue: 0.800)
/* Android */
Color.parseColor("#f5eccc")
/* Flutter */
Color(0xFFF5ECCC)
/* Python / OpenCV (BGR) */
(204, 236, 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 #f5eccc · 17.75:1
Use #000000AAA at every size.
Aa
White text · 1.18:1
AA fail · AA large fail · AAA fail
Aa
Black text · 17.75:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #f5eccc as text scores 1.18:1 on white and 17.75:1 on black.

Accessibility — WCAG contrast

Aa
#f5eccc on white: 1.18:1
AA ✗ fail · AA-large · AAA
Aa
#f5eccc on black: 17.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F3EACA
deuteranopia · #F6EDCD
tritanopia · #FCE7E3

Color scale — 50 to 950

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

#FBFAF3
#F8F4E8
#f5eccc
#EDDCA1
#E3CB72
#DAB943
#CDA828
#AB8C21
#88701B
#635217
#3E330F
Base = 200Lightest = 50 · #FBFAF3Darkest = 950 · #3E330F
:root {
  --brand-50: #FBFAF3;
  --brand-100: #F8F4E8;
  --brand-200: #f5eccc;
  --brand-300: #EDDCA1;
  --brand-400: #E3CB72;
  --brand-500: #DAB943;
  --brand-600: #CDA828;
  --brand-700: #AB8C21;
  --brand-800: #88701B;
  --brand-900: #635217;
  --brand-950: #3E330F;
  --brand: #f5eccc;
  --brand-ink: #000000;
}

Colors that work with #f5eccc

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#FAF9F4
Tinted page background
Border#EDE3C0
Hairlines and dividers
Muted text#9B894B
Captions on the surface
Accent#1E61AE
Second voice, not a rival
Dark variant#6B5815
Hover, pressed, headers
Light variant#FBF7EA
Selected rows, tints
Dark surface#242114
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 #f5eccc

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#CCD5F5
Analogous left#F5D7CC
Analogous right#E9F5CC
Split-complement 1#CCE9F5
Split-complement 2#D7CCF5
Triadic 1#CCF5EC
Triadic 2#ECCCF5
Tetradic#CCF5D7

RGB percentages

Red96.1%
Green92.5%
Blue80.0%

CMYK percentages

Cyan0.0%
Magenta3.7%
Yellow16.7%
Key (black)3.9%

Color previews

#f5eccc text on a black background

contrast 17.75:1

Card sample

#f5eccc text on a white background

contrast 1.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f5eccc

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.

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

#f5eccc, answered

What color is #f5eccc?

#f5eccc is a pale vivid yellow, closest to Corn Silk (ΔE2000 2.8). It sits at 47° on the hue wheel with 67% saturation and 88% lightness, which reads as warm.

What is the RGB value of #f5eccc?

rgb(245, 236, 204) — 245 red, 236 green and 204 blue out of 255, or 96.1% / 92.5% / 80% by channel.

Is #f5eccc a light or a dark color?

It is a light color. Relative luminance is 0.8376 and perceived brightness is 92%, so black text on it reaches 17.75:1.

Should I use black or white text on #f5eccc?

Black. It scores 17.75:1 against #f5eccc, versus 1.18:1 for white — AAA at any size.

What is the complementary color of #f5eccc?

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

What colors go well with #f5eccc?

For interface work: #FAF9F4 as the surface, #EDE3C0 for borders, #9B894B for secondary text, #1E61AE as an accent and #6B5815 for hover and pressed states. For a palette, the analogous pair #F5D7CC and #E9F5CC stays calm, while #CCD5F5 is the loudest partner.

What is #f5eccc in CMYK for printing?

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

Is #f5eccc warm or cool?

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

Work with #f5eccc in the Color Lab