Skip to content

#f6eb9c

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

RGB
246, 235, 156
HSL
53°, 83%, 79%
CMYK
0, 5, 37, 4
Luminance
0.8141

At a glance

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

Hex
#f6eb9c
Hue
53°
yellow
Saturation
83%
electric
Lightness
79%
light
Brightness
96%
HSV value
Perceived
91%
weighted brightness
Luminance
0.8141
WCAG relative
Temperature
Warm
19/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
17.28:1
Closest name
Khaki
ΔE2000 2.3
Where it sits
Hue53° of 360°
Saturation83%
Lightness79%
Temperature
Warm ← → Cool19% 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#f6eb9c
RGBrgb(246, 235, 156)
HSLhsl(53, 83%, 79%)
CMYKcmyk(0%, 5%, 37%, 4%)
LABlab(92.3 -7.5 39.7)
LCHlch(92.3 40.4 100.7)
OKLCHoklch(0.931 0.100 101.3)
Decimal16182172
Display P3color(display-p3 0.965 0.922 0.612)

Copy-ready code

/* CSS */
color: #f6eb9c;
background-color: #f6eb9c;
/* Tailwind (arbitrary) */
class="text-[#f6eb9c] bg-[#f6eb9c]"
/* SCSS */
$brand: #f6eb9c;
/* SwiftUI */
Color(red: 0.965, green: 0.922, blue: 0.612)
/* Android */
Color.parseColor("#f6eb9c")
/* Flutter */
Color(0xFFF6EB9C)
/* Python / OpenCV (BGR) */
(156, 235, 246)

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

Accessibility — WCAG contrast

Aa
#f6eb9c on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#f6eb9c on black: 17.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F9E696
deuteranopia · #FCEB9F
tritanopia · #FFE1D7

Color scale — 50 to 950

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

#FCFBF2
#FAF7E6
#F6F0C6
#f6eb9c
#F1E065
#ECD631
#E0C814
#BBA611
#96850E
#6C610E
#443C09
Base = 300Lightest = 50 · #FCFBF2Darkest = 950 · #443C09
:root {
  --brand-50: #FCFBF2;
  --brand-100: #FAF7E6;
  --brand-200: #F6F0C6;
  --brand-300: #f6eb9c;
  --brand-400: #F1E065;
  --brand-500: #ECD631;
  --brand-600: #E0C814;
  --brand-700: #BBA611;
  --brand-800: #96850E;
  --brand-900: #6C610E;
  --brand-950: #443C09;
  --brand: #f6eb9c;
  --brand-ink: #000000;
}

Colors that work with #f6eb9c

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#EDE7C0
Hairlines and dividers
Muted text#9B914B
Captions on the surface
Accent#0D4FBF
Second voice, not a rival
Dark variant#75680B
Hover, pressed, headers
Light variant#FDFAE8
Selected rows, tints
Dark surface#242214
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 #f6eb9c

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#9CA7F6
Analogous left#F6BE9C
Analogous right#D4F69C
Split-complement 1#9CD4F6
Split-complement 2#BE9CF6
Triadic 1#9CF6EB
Triadic 2#EB9CF6
Tetradic#9CF6BE

RGB percentages

Red96.5%
Green92.2%
Blue61.2%

CMYK percentages

Cyan0.0%
Magenta4.5%
Yellow36.6%
Key (black)3.5%

Color previews

#f6eb9c text on a black background

contrast 17.28:1

Card sample

#f6eb9c text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(246, 235, 156, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(246, 235, 156, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f6eb9c;
background: linear-gradient(135deg, #f6eb9c, #C5F69C);

Monochromatic scale

Palettes built from #f6eb9c

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.

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

#f6eb9c, answered

What color is #f6eb9c?

#f6eb9c is a light electric yellow, closest to Khaki (ΔE2000 2.3). It sits at 53° on the hue wheel with 83% saturation and 79% lightness, which reads as warm.

What is the RGB value of #f6eb9c?

rgb(246, 235, 156) — 246 red, 235 green and 156 blue out of 255, or 96.5% / 92.2% / 61.2% by channel.

Is #f6eb9c a light or a dark color?

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

Should I use black or white text on #f6eb9c?

Black. It scores 17.28:1 against #f6eb9c, versus 1.22:1 for white — AAA at any size.

What is the complementary color of #f6eb9c?

#9CA7F6 sits directly opposite on the wheel. Softer options are the split-complements #9CD4F6 and #BE9CF6, which give the same contrast with far less vibration.

What colors go well with #f6eb9c?

For interface work: #FAFAF4 as the surface, #EDE7C0 for borders, #9B914B for secondary text, #0D4FBF as an accent and #75680B for hover and pressed states. For a palette, the analogous pair #F6BE9C and #D4F69C stays calm, while #9CA7F6 is the loudest partner.

What is #f6eb9c in CMYK for printing?

cmyk(0%, 5%, 37%, 4%). 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 #f6eb9c warm or cool?

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

Work with #f6eb9c in the Color Lab