Skip to content

#feff7c

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

RGB
254, 255, 124
HSL
61°, 100%, 74%
CMYK
0, 0, 51, 0
Luminance
0.9405

At a glance

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

Hex
#feff7c
Hue
61°
yellow
Saturation
100%
electric
Lightness
74%
light
Brightness
100%
HSV value
Perceived
95%
weighted brightness
Luminance
0.9405
WCAG relative
Temperature
Warm
25/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
19.81:1
Closest name
Khaki
ΔE2000 7.3
Where it sits
Hue61° of 360°
Saturation100%
Lightness74%
Temperature
Warm ← → Cool25% 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#feff7c
RGBrgb(254, 255, 124)
HSLhsl(61, 100%, 74%)
CMYKcmyk(0%, 0%, 51%, 0%)
LABlab(97.7 -17.3 61.6)
LCHlch(97.7 64.0 105.6)
OKLCHoklch(0.974 0.153 109.3)
Decimal16711548
Display P3color(display-p3 0.996 1.000 0.486)

Copy-ready code

/* CSS */
color: #feff7c;
background-color: #feff7c;
/* Tailwind (arbitrary) */
class="text-[#feff7c] bg-[#feff7c]"
/* SCSS */
$brand: #feff7c;
/* SwiftUI */
Color(red: 0.996, green: 1.000, blue: 0.486)
/* Android */
Color.parseColor("#feff7c")
/* Flutter */
Color(0xFFFEFF7C)
/* Python / OpenCV (BGR) */
(124, 255, 254)

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

Accessibility — WCAG contrast

Aa
#feff7c on white: 1.06:1
AA ✗ fail · AA-large · AAA
Aa
#feff7c on black: 19.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFF66F
deuteranopia · #FFFA83
tritanopia · #FFF1E2

Color scale — 50 to 950

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

#FEFEF1
#FCFCE3
#FBFCC0
#feff7c
#FEFF57
#FDFF1F
#F3F500
#CACC00
#A2A300
#757605
#494903
Base = 300Lightest = 50 · #FEFEF1Darkest = 950 · #494903
:root {
  --brand-50: #FEFEF1;
  --brand-100: #FCFCE3;
  --brand-200: #FBFCC0;
  --brand-300: #feff7c;
  --brand-400: #FEFF57;
  --brand-500: #FDFF1F;
  --brand-600: #F3F500;
  --brand-700: #CACC00;
  --brand-800: #A2A300;
  --brand-900: #757605;
  --brand-950: #494903;
  --brand: #feff7c;
  --brand-ink: #000000;
}

Colors that work with #feff7c

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#ECEDC0
Hairlines and dividers
Muted text#9A9B4B
Captions on the surface
Accent#0032CC
Second voice, not a rival
Dark variant#7E8000
Hover, pressed, headers
Light variant#FFFFE5
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 #feff7c

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#7D7CFF
Analogous left#FFBF7C
Analogous right#BCFF7C
Split-complement 1#7CBCFF
Split-complement 2#BF7CFF
Triadic 1#7CFEFF
Triadic 2#FF7CFE
Tetradic#7CFFBF

RGB percentages

Red99.6%
Green100.0%
Blue48.6%

CMYK percentages

Cyan0.4%
Magenta0.0%
Yellow51.4%
Key (black)0.0%

Color previews

#feff7c text on a black background

contrast 19.81:1

Card sample

#feff7c text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(254, 255, 124, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(254, 255, 124, 0.45);
Border & gradient
Gradient panel
border: 3px solid #feff7c;
background: linear-gradient(135deg, #feff7c, #A7FF7C);

Monochromatic scale

Palettes built from #feff7c

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.

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

#feff7c, answered

What color is #feff7c?

#feff7c is a light electric yellow, closest to Khaki (ΔE2000 7.3). It sits at 61° on the hue wheel with 100% saturation and 74% lightness, which reads as warm.

What is the RGB value of #feff7c?

rgb(254, 255, 124) — 254 red, 255 green and 124 blue out of 255, or 99.6% / 100% / 48.6% by channel.

Is #feff7c a light or a dark color?

It is a light color. Relative luminance is 0.9405 and perceived brightness is 95%, so black text on it reaches 19.81:1.

Should I use black or white text on #feff7c?

Black. It scores 19.81:1 against #feff7c, versus 1.06:1 for white — AAA at any size.

What is the complementary color of #feff7c?

#7D7CFF sits directly opposite on the wheel. Softer options are the split-complements #7CBCFF and #BF7CFF, which give the same contrast with far less vibration.

What colors go well with #feff7c?

For interface work: #FAFAF4 as the surface, #ECEDC0 for borders, #9A9B4B for secondary text, #0032CC as an accent and #7E8000 for hover and pressed states. For a palette, the analogous pair #FFBF7C and #BCFF7C stays calm, while #7D7CFF is the loudest partner.

What is #feff7c in CMYK for printing?

cmyk(0%, 0%, 51%, 0%). 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 #feff7c warm or cool?

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

Work with #feff7c in the Color Lab