Skip to content

#d1f978

a light, electric green · warm · closest name: Green Yellow

RGB
209, 249, 120
HSL
79°, 92%, 72%
CMYK
16, 0, 52, 2
Luminance
0.8266

At a glance

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

Hex
#d1f978
Hue
79°
green
Saturation
92%
electric
Lightness
72%
light
Brightness
98%
HSV value
Perceived
89%
weighted brightness
Luminance
0.8266
WCAG relative
Temperature
Warm
41/100 cool
Color family
Green
Tone
Electric
Best ink
Black
17.53:1
Closest name
Green Yellow
ΔE2000 7.1
Where it sits
Hue79° of 360°
Saturation92%
Lightness72%
Temperature
Warm ← → Cool41% 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#d1f978
RGBrgb(209, 249, 120)
HSLhsl(79, 92%, 72%)
CMYKcmyk(16%, 0%, 52%, 2%)
LABlab(92.9 -32.0 57.0)
LCHlch(92.9 65.4 119.3)
OKLCHoklch(0.927 0.162 123.8)
Decimal13760888
Display P3color(display-p3 0.820 0.976 0.471)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#d1f978 on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#d1f978 on black: 17.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFEC6C
deuteranopia · #FFEA80
tritanopia · #D9EFDC

Color scale — 50 to 950

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

#F9FDF2
#F4FBE4
#E8F9C3
#DAFA94
#d1f978
#B6F528
#A5EA0A
#89C309
#6E9C07
#51710A
#324606
Base = 400Lightest = 50 · #F9FDF2Darkest = 950 · #324606
:root {
  --brand-50: #F9FDF2;
  --brand-100: #F4FBE4;
  --brand-200: #E8F9C3;
  --brand-300: #DAFA94;
  --brand-400: #d1f978;
  --brand-500: #B6F528;
  --brand-600: #A5EA0A;
  --brand-700: #89C309;
  --brand-800: #6E9C07;
  --brand-900: #51710A;
  --brand-950: #324606;
  --brand: #d1f978;
  --brand-ink: #000000;
}

Colors that work with #d1f978

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#F9FAF4
Tinted page background
Border#DFEDC0
Hairlines and dividers
Muted text#829B4B
Captions on the surface
Accent#7D75FC
Second voice, not a rival
Dark variant#567A05
Hover, pressed, headers
Light variant#F7FEE7
Selected rows, tints
Dark surface#1F2414
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 #d1f978

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
  • 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#A078F9
Analogous left#F9E178
Analogous right#91F978
Split-complement 1#7891F9
Split-complement 2#E178F9
Triadic 1#78D1F9
Triadic 2#F978D1
Tetradic#78F9E1

RGB percentages

Red82.0%
Green97.6%
Blue47.1%

CMYK percentages

Cyan16.1%
Magenta0.0%
Yellow51.8%
Key (black)2.4%

Color previews

#d1f978 text on a black background

contrast 17.53:1

Card sample

#d1f978 text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d1f978

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.

#d1f978 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#d1f978, answered

What color is #d1f978?

#d1f978 is a light electric green, closest to Green Yellow (ΔE2000 7.1). It sits at 79° on the hue wheel with 92% saturation and 72% lightness, which reads as warm.

What is the RGB value of #d1f978?

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

Is #d1f978 a light or a dark color?

It is a light color. Relative luminance is 0.8266 and perceived brightness is 89%, so black text on it reaches 17.53:1.

Should I use black or white text on #d1f978?

Black. It scores 17.53:1 against #d1f978, versus 1.20:1 for white — AAA at any size.

What is the complementary color of #d1f978?

#A078F9 sits directly opposite on the wheel. Softer options are the split-complements #7891F9 and #E178F9, which give the same contrast with far less vibration.

What colors go well with #d1f978?

For interface work: #F9FAF4 as the surface, #DFEDC0 for borders, #829B4B for secondary text, #7D75FC as an accent and #567A05 for hover and pressed states. For a palette, the analogous pair #F9E178 and #91F978 stays calm, while #A078F9 is the loudest partner.

What is #d1f978 in CMYK for printing?

cmyk(16%, 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 #d1f978 warm or cool?

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

Work with #d1f978 in the Color Lab