#cfe87f
a light, vivid green · warm · closest name: Khaki
At a glance
Every number on this page in one read: what #cfe87f is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #cfe87f |
| RGB | rgb(207, 232, 127) |
| HSL | hsl(74, 70%, 70%) |
| CMYK | cmyk(11%, 0%, 45%, 9%) |
| LAB | lab(88.2 -24.1 48.1) |
| LCH | lch(88.2 53.8 116.6) |
| OKLCH | oklch(0.890 0.134 120.2) |
| Decimal | 13625471 |
| Display P3 | color(display-p3 0.812 0.910 0.498) |
Copy-ready code
/* CSS */
color: #cfe87f;
background-color: #cfe87f;
/* Tailwind (arbitrary) */
class="text-[#cfe87f] bg-[#cfe87f]"
/* SCSS */
$brand: #cfe87f;
/* SwiftUI */
Color(red: 0.812, green: 0.910, blue: 0.498)
/* Android */
Color.parseColor("#cfe87f")
/* Flutter */
Color(0xFFCFE87F)
/* Python / OpenCV (BGR) */
(127, 232, 207)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #cfe87f 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.
:root {
--brand-50: #FAFBF3;
--brand-100: #F4F8E7;
--brand-200: #E8F2CA;
--brand-300: #DBEEA0;
--brand-400: #cfe87f;
--brand-500: #B8DD41;
--brand-600: #A7CF25;
--brand-700: #8BAD1F;
--brand-800: #6F8A19;
--brand-900: #526416;
--brand-950: #333F0E;
--brand: #cfe87f;
--brand-ink: #000000;
}Colors that work with #cfe87f
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #cfe87f
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #987FE8 | Directly opposite — maximum tension | |
| Analogous left | #E8CD7F | Neighbour, quieter | |
| Analogous right | #9BE87F | Neighbour, quieter | |
| Split-complement 1 | #7F9BE8 | Contrast without the clash | |
| Split-complement 2 | #CD7FE8 | Contrast without the clash | |
| Triadic 1 | #7FCFE8 | Even thirds — balanced and loud | |
| Triadic 2 | #E87FCF | Even thirds — balanced and loud | |
| Tetradic | #7FE8CD | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#cfe87f text on a black background
contrast 15.50:1
#cfe87f text on a white background
contrast 1.35:1
CSS3 live lab
The quick brown fox
color: #cfe87f;
background-color: #cfe87f;
Glowing headline
text-shadow: 2px 2px 8px #cfe87f;
Soft neon halo
text-shadow: 0 0 14px rgba(207, 232, 127, 0.45);
box-shadow: 0 12px 32px -8px rgba(207, 232, 127, 0.45);
border: 3px solid #cfe87f; background: linear-gradient(135deg, #cfe87f, #89E87F);
Monochromatic scale
Palettes built from #cfe87f
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.
Closest color with a full write-up: Spring Bud (#a7fc00) — ΔE2000 11.3 away, with its history, psychology and brand usage.
#cfe87f in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#cfe87f, answered
What color is #cfe87f?
#cfe87f is a light vivid green, closest to Khaki (ΔE2000 8.5). It sits at 74° on the hue wheel with 70% saturation and 70% lightness, which reads as warm.
What is the RGB value of #cfe87f?
rgb(207, 232, 127) — 207 red, 232 green and 127 blue out of 255, or 81.2% / 91% / 49.8% by channel.
Is #cfe87f a light or a dark color?
It is a light color. Relative luminance is 0.7251 and perceived brightness is 84%, so black text on it reaches 15.50:1.
Should I use black or white text on #cfe87f?
Black. It scores 15.50:1 against #cfe87f, versus 1.35:1 for white — AAA at any size.
What is the complementary color of #cfe87f?
#987FE8 sits directly opposite on the wheel. Softer options are the split-complements #7F9BE8 and #CD7FE8, which give the same contrast with far less vibration.
What colors go well with #cfe87f?
For interface work: #F9FAF4 as the surface, #E2EDC0 for borders, #889B4B for secondary text, #7C7DEB as an accent and #576C13 for hover and pressed states. For a palette, the analogous pair #E8CD7F and #9BE87F stays calm, while #987FE8 is the loudest partner.
What is #cfe87f in CMYK for printing?
cmyk(11%, 0%, 45%, 9%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #cfe87f warm or cool?
Warm — it scores 37 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E8DB7F; nudged cooler, #A8E97E.