Skip to content

#ccf97f

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

RGB
204, 249, 127
HSL
82°, 91%, 74%
CMYK
18, 0, 49, 2
Luminance
0.8212

At a glance

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

Hex
#ccf97f
Hue
82°
green
Saturation
91%
electric
Lightness
74%
light
Brightness
98%
HSV value
Perceived
88%
weighted brightness
Luminance
0.8212
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Green
Tone
Electric
Best ink
Black
17.42:1
Closest name
Green Yellow
ΔE2000 7.5
Where it sits
Hue82° of 360°
Saturation91%
Lightness74%
Temperature
Warm ← → Cool43% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#ccf97f
RGBrgb(204, 249, 127)
HSLhsl(82, 91%, 74%)
CMYKcmyk(18%, 0%, 49%, 2%)
LABlab(92.6 -33.2 53.5)
LCHlch(92.6 62.9 121.8)
OKLCHoklch(0.925 0.158 126.0)
Decimal13433215
Display P3color(display-p3 0.800 0.976 0.498)

Copy-ready code

/* CSS */
color: #ccf97f;
background-color: #ccf97f;
/* Tailwind (arbitrary) */
class="text-[#ccf97f] bg-[#ccf97f]"
/* SCSS */
$brand: #ccf97f;
/* SwiftUI */
Color(red: 0.800, green: 0.976, blue: 0.498)
/* Android */
Color.parseColor("#ccf97f")
/* Flutter */
Color(0xFFCCF97F)
/* Python / OpenCV (BGR) */
(127, 249, 204)

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

Accessibility — WCAG contrast

Aa
#ccf97f on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#ccf97f on black: 17.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFEC74
deuteranopia · #FEE986
tritanopia · #D2EFDD

Color scale — 50 to 950

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

#F9FDF2
#F3FBE5
#E5F9C3
#ccf97f
#BFF75E
#AAF529
#98EA0B
#7EC309
#659C07
#4B700A
#2F4606
Base = 300Lightest = 50 · #F9FDF2Darkest = 950 · #2F4606
:root {
  --brand-50: #F9FDF2;
  --brand-100: #F3FBE5;
  --brand-200: #E5F9C3;
  --brand-300: #ccf97f;
  --brand-400: #BFF75E;
  --brand-500: #AAF529;
  --brand-600: #98EA0B;
  --brand-700: #7EC309;
  --brand-800: #659C07;
  --brand-900: #4B700A;
  --brand-950: #2F4606;
  --brand: #ccf97f;
  --brand-ink: #000000;
}

Colors that work with #ccf97f

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#F8FAF4
Tinted page background
Border#DCEDC0
Hairlines and dividers
Muted text#7D9B4B
Captions on the surface
Accent#8B7CFC
Second voice, not a rival
Dark variant#4F7A06
Hover, pressed, headers
Light variant#F5FEE7
Selected rows, tints
Dark surface#1E2414
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 #ccf97f

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#AC7FF9
Analogous left#F9E97F
Analogous right#8FF97F
Split-complement 1#7F8FF9
Split-complement 2#E97FF9
Triadic 1#7FCCF9
Triadic 2#F97FCC
Tetradic#7FF9E9

RGB percentages

Red80.0%
Green97.6%
Blue49.8%

CMYK percentages

Cyan18.1%
Magenta0.0%
Yellow49.0%
Key (black)2.4%

Color previews

#ccf97f text on a black background

contrast 17.42:1

Card sample

#ccf97f text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccf97f

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.

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

#ccf97f, answered

What color is #ccf97f?

#ccf97f is a light electric green, closest to Green Yellow (ΔE2000 7.5). It sits at 82° on the hue wheel with 91% saturation and 74% lightness, which reads as neutral.

What is the RGB value of #ccf97f?

rgb(204, 249, 127) — 204 red, 249 green and 127 blue out of 255, or 80% / 97.6% / 49.8% by channel.

Is #ccf97f a light or a dark color?

It is a light color. Relative luminance is 0.8212 and perceived brightness is 88%, so black text on it reaches 17.42:1.

Should I use black or white text on #ccf97f?

Black. It scores 17.42:1 against #ccf97f, versus 1.21:1 for white — AAA at any size.

What is the complementary color of #ccf97f?

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

What colors go well with #ccf97f?

For interface work: #F8FAF4 as the surface, #DCEDC0 for borders, #7D9B4B for secondary text, #8B7CFC as an accent and #4F7A06 for hover and pressed states. For a palette, the analogous pair #F9E97F and #8FF97F stays calm, while #AC7FF9 is the loudest partner.

What is #ccf97f in CMYK for printing?

cmyk(18%, 0%, 49%, 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 #ccf97f warm or cool?

Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F9F97F; nudged cooler, #9FFA7E.

Work with #ccf97f in the Color Lab