#04df8f
a dark, electric green · cool · closest name: Medium Spring Green
At a glance
Every number on this page in one read: what #04df8f is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #04df8f |
| RGB | rgb(4, 223, 143) |
| HSL | hsl(158, 97%, 45%) |
| CMYK | cmyk(98%, 0%, 36%, 13%) |
| LAB | lab(78.9 -63.5 26.8) |
| LCH | lch(78.9 68.9 157.1) |
| OKLCH | oklch(0.796 0.184 158.6) |
| Decimal | 319375 |
| Display P3 | color(display-p3 0.016 0.875 0.561) |
Copy-ready code
/* CSS */
color: #04df8f;
background-color: #04df8f;
/* Tailwind (arbitrary) */
class="text-[#04df8f] bg-[#04df8f]"
/* SCSS */
$brand: #04df8f;
/* SwiftUI */
Color(red: 0.016, green: 0.875, blue: 0.561)
/* Android */
Color.parseColor("#04df8f")
/* Flutter */
Color(0xFF04DF8F)
/* Python / OpenCV (BGR) */
(143, 223, 4)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. #04df8f is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F1FDF9;
--brand-100: #E4FCF3;
--brand-200: #C1FBE6;
--brand-300: #91FDD6;
--brand-400: #5AFCC1;
--brand-500: #23FBAC;
--brand-600: #04df8f;
--brand-700: #04C881;
--brand-800: #03A067;
--brand-900: #07744C;
--brand-950: #04482F;
--brand: #04df8f;
--brand-ink: #000000;
}Colors that work with #04df8f
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 #04df8f
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
- ✓Headers, footers and dark-mode surfaces
- ✓Brand accents, badges and data highlights
- ⚠Text of any size on white — fails WCAG AA
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Black 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 | #DF0454 | Directly opposite — maximum tension | |
| Analogous left | #04DF22 | Neighbour, quieter | |
| Analogous right | #04C1DF | Neighbour, quieter | |
| Split-complement 1 | #DF04C1 | Contrast without the clash | |
| Split-complement 2 | #DF2204 | Contrast without the clash | |
| Triadic 1 | #8F04DF | Even thirds — balanced and loud | |
| Triadic 2 | #DF8F04 | Even thirds — balanced and loud | |
| Tetradic | #2204DF | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#04df8f text on a black background
contrast 11.96:1
#04df8f text on a white background
contrast 1.76:1
CSS3 live lab
The quick brown fox
color: #04df8f;
background-color: #04df8f;
Glowing headline
text-shadow: 2px 2px 8px #04df8f;
Soft neon halo
text-shadow: 0 0 14px rgba(4, 223, 143, 0.45);
box-shadow: 0 12px 32px -8px rgba(4, 223, 143, 0.45);
border: 3px solid #04df8f; background: linear-gradient(135deg, #04df8f, #049DDF);
Monochromatic scale
Palettes built from #04df8f
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: Emerald (#50c878) — ΔE2000 6.5 away, with its history, psychology and brand usage.
#04df8f 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.
#04df8f, answered
What color is #04df8f?
#04df8f is a dark electric green, closest to Medium Spring Green (ΔE2000 6.1). It sits at 158° on the hue wheel with 97% saturation and 45% lightness, which reads as cool.
What is the RGB value of #04df8f?
rgb(4, 223, 143) — 4 red, 223 green and 143 blue out of 255, or 1.6% / 87.5% / 56.1% by channel.
Is #04df8f a light or a dark color?
It is a light color. Relative luminance is 0.5478 and perceived brightness is 70%, so black text on it reaches 11.96:1.
Should I use black or white text on #04df8f?
Black. It scores 11.96:1 against #04df8f, versus 1.76:1 for white — AAA at any size.
What is the complementary color of #04df8f?
#DF0454 sits directly opposite on the wheel. Softer options are the split-complements #DF04C1 and #DF2204, which give the same contrast with far less vibration.
What colors go well with #04df8f?
For interface work: #F4FAF8 as the surface, #C0EDDC for borders, #4B9B7E for secondary text, #E3008C as an accent and #027D50 for hover and pressed states. For a palette, the analogous pair #04DF22 and #04C1DF stays calm, while #DF0454 is the loudest partner.
What is #04df8f in CMYK for printing?
cmyk(98%, 0%, 36%, 13%). 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 #04df8f warm or cool?
Cool — it scores 78 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #04DF3F; nudged cooler, #02E1E1.