Skip to content

#edf978

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

RGB
237, 249, 120
HSL
66°, 92%, 72%
CMYK
5, 0, 52, 2
Luminance
0.8711

At a glance

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

Hex
#edf978
Hue
66°
yellow
Saturation
92%
electric
Lightness
72%
light
Brightness
98%
HSV value
Perceived
92%
weighted brightness
Luminance
0.8711
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
18.42:1
Closest name
Khaki
ΔE2000 7.4
Where it sits
Hue66° of 360°
Saturation92%
Lightness72%
Temperature
Warm ← → Cool30% 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#edf978
RGBrgb(237, 249, 120)
HSLhsl(66, 92%, 72%)
CMYKcmyk(5%, 0%, 52%, 2%)
LABlab(94.8 -21.3 59.8)
LCHlch(94.8 63.4 109.6)
OKLCHoklch(0.948 0.153 113.7)
Decimal15595896
Display P3color(display-p3 0.929 0.976 0.471)

Copy-ready code

/* CSS */
color: #edf978;
background-color: #edf978;
/* Tailwind (arbitrary) */
class="text-[#edf978] bg-[#edf978]"
/* SCSS */
$brand: #edf978;
/* SwiftUI */
Color(red: 0.929, green: 0.976, blue: 0.471)
/* Android */
Color.parseColor("#edf978")
/* Flutter */
Color(0xFFEDF978)
/* Python / OpenCV (BGR) */
(120, 249, 237)

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

Accessibility — WCAG contrast

Aa
#edf978 on white: 1.14:1
AA ✗ fail · AA-large · AAA
Aa
#edf978 on black: 18.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFEF6C
deuteranopia · #FFF17F
tritanopia · #FAEDDC

Color scale — 50 to 950

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

#FCFDF2
#F9FBE4
#F4F9C3
#F1FA94
#edf978
#E2F528
#D5EA0A
#B2C309
#8E9C07
#67710A
#404606
Base = 400Lightest = 50 · #FCFDF2Darkest = 950 · #404606
:root {
  --brand-50: #FCFDF2;
  --brand-100: #F9FBE4;
  --brand-200: #F4F9C3;
  --brand-300: #F1FA94;
  --brand-400: #edf978;
  --brand-500: #E2F528;
  --brand-600: #D5EA0A;
  --brand-700: #B2C309;
  --brand-800: #8E9C07;
  --brand-900: #67710A;
  --brand-950: #404606;
  --brand: #edf978;
  --brand-ink: #000000;
}

Colors that work with #edf978

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#E8EDC0
Hairlines and dividers
Muted text#939B4B
Captions on the surface
Accent#0423C8
Second voice, not a rival
Dark variant#6F7A05
Hover, pressed, headers
Light variant#FCFEE7
Selected rows, tints
Dark surface#232414
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 #edf978

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#8478F9
Analogous left#F9C578
Analogous right#ADF978
Split-complement 1#78ADF9
Split-complement 2#C578F9
Triadic 1#78EDF9
Triadic 2#F978ED
Tetradic#78F9C5

RGB percentages

Red92.9%
Green97.6%
Blue47.1%

CMYK percentages

Cyan4.8%
Magenta0.0%
Yellow51.8%
Key (black)2.4%

Color previews

#edf978 text on a black background

contrast 18.42:1

Card sample

#edf978 text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(237, 249, 120, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(237, 249, 120, 0.45);
Border & gradient
Gradient panel
border: 3px solid #edf978;
background: linear-gradient(135deg, #edf978, #97F978);

Monochromatic scale

Palettes built from #edf978

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.

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

#edf978, answered

What color is #edf978?

#edf978 is a light electric yellow, closest to Khaki (ΔE2000 7.4). It sits at 66° on the hue wheel with 92% saturation and 72% lightness, which reads as warm.

What is the RGB value of #edf978?

rgb(237, 249, 120) — 237 red, 249 green and 120 blue out of 255, or 92.9% / 97.6% / 47.1% by channel.

Is #edf978 a light or a dark color?

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

Should I use black or white text on #edf978?

Black. It scores 18.42:1 against #edf978, versus 1.14:1 for white — AAA at any size.

What is the complementary color of #edf978?

#8478F9 sits directly opposite on the wheel. Softer options are the split-complements #78ADF9 and #C578F9, which give the same contrast with far less vibration.

What colors go well with #edf978?

For interface work: #FAFAF4 as the surface, #E8EDC0 for borders, #939B4B for secondary text, #0423C8 as an accent and #6F7A05 for hover and pressed states. For a palette, the analogous pair #F9C578 and #ADF978 stays calm, while #8478F9 is the loudest partner.

What is #edf978 in CMYK for printing?

cmyk(5%, 0%, 52%, 2%). 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 #edf978 warm or cool?

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

Work with #edf978 in the Color Lab