#afef2c
a balanced, electric green · warm · closest name: Green Yellow
At a glance
Every number on this page in one read: what #afef2c 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 | #afef2c |
| RGB | rgb(175, 239, 44) |
| HSL | hsl(80, 86%, 56%) |
| CMYK | cmyk(27%, 0%, 82%, 6%) |
| LAB | lab(87.5 -45.2 78.7) |
| LCH | lch(87.5 90.7 119.9) |
| OKLCH | oklch(0.877 0.216 127.3) |
| Decimal | 11530028 |
| Display P3 | color(display-p3 0.686 0.937 0.173) |
Copy-ready code
/* CSS */
color: #afef2c;
background-color: #afef2c;
/* Tailwind (arbitrary) */
class="text-[#afef2c] bg-[#afef2c]"
/* SCSS */
$brand: #afef2c;
/* SwiftUI */
Color(red: 0.686, green: 0.937, blue: 0.173)
/* Android */
Color.parseColor("#afef2c")
/* Flutter */
Color(0xFFAFEF2C)
/* Python / OpenCV (BGR) */
(44, 239, 175)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. #afef2c is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F9FDF2;
--brand-100: #F3FAE5;
--brand-200: #E6F7C5;
--brand-300: #D7F797;
--brand-400: #C4F363;
--brand-500: #afef2c;
--brand-600: #9EE411;
--brand-700: #84BE0E;
--brand-800: #6A980C;
--brand-900: #4E6E0D;
--brand-950: #314408;
--brand: #afef2c;
--brand-ink: #000000;
}Colors that work with #afef2c
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 #afef2c
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
- ✓Brand accents, badges and data highlights
- ⚠Text of any size on white — fails WCAG AA
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠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 | #6C2CEF | Directly opposite — maximum tension | |
| Analogous left | #EFCE2C | Neighbour, quieter | |
| Analogous right | #4EEF2C | Neighbour, quieter | |
| Split-complement 1 | #2C4EEF | Contrast without the clash | |
| Split-complement 2 | #CE2CEF | Contrast without the clash | |
| Triadic 1 | #2CAFEF | Even thirds — balanced and loud | |
| Triadic 2 | #EF2CAF | Even thirds — balanced and loud | |
| Tetradic | #2CEFCE | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#afef2c text on a black background
contrast 15.21:1
#afef2c text on a white background
contrast 1.38:1
CSS3 live lab
The quick brown fox
color: #afef2c;
background-color: #afef2c;
Glowing headline
text-shadow: 2px 2px 8px #afef2c;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 239, 44, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 239, 44, 0.45);
border: 3px solid #afef2c; background: linear-gradient(135deg, #afef2c, #2DEF2C);
Monochromatic scale
Palettes built from #afef2c
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 3.3 away, with its history, psychology and brand usage.
#afef2c in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#afef2c, answered
What color is #afef2c?
#afef2c is a balanced electric green, closest to Green Yellow (ΔE2000 3.5). It sits at 80° on the hue wheel with 86% saturation and 56% lightness, which reads as warm.
What is the RGB value of #afef2c?
rgb(175, 239, 44) — 175 red, 239 green and 44 blue out of 255, or 68.6% / 93.7% / 17.3% by channel.
Is #afef2c a light or a dark color?
It is a light color. Relative luminance is 0.7103 and perceived brightness is 81%, so black text on it reaches 15.21:1.
Should I use black or white text on #afef2c?
Black. It scores 15.21:1 against #afef2c, versus 1.38:1 for white — AAA at any size.
What is the complementary color of #afef2c?
#6C2CEF sits directly opposite on the wheel. Softer options are the split-complements #2C4EEF and #CE2CEF, which give the same contrast with far less vibration.
What colors go well with #afef2c?
For interface work: #F8FAF4 as the surface, #DEEDC0 for borders, #819B4B for secondary text, #3728F4 as an accent and #537709 for hover and pressed states. For a palette, the analogous pair #EFCE2C and #4EEF2C stays calm, while #6C2CEF is the loudest partner.
What is #afef2c in CMYK for printing?
cmyk(27%, 0%, 82%, 6%). 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 #afef2c 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 #EFE82C; nudged cooler, #67F12A.