#8af021
a balanced, electric green · neutral · closest name: Lawn Green
At a glance
Every number on this page in one read: what #8af021 is made of, how bright it looks, and which way it leans.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #8af021 |
| RGB | rgb(138, 240, 33) |
| HSL | hsl(90, 87%, 54%) |
| CMYK | cmyk(43%, 0%, 86%, 6%) |
| LAB | lab(85.9 -58.7 79.0) |
| LCH | lch(85.9 98.4 126.6) |
| OKLCH | oklch(0.859 0.238 134.0) |
| Decimal | 9105441 |
| Display P3 | color(display-p3 0.541 0.941 0.129) |
Copy-ready code
/* CSS */
color: #8af021;
background-color: #8af021;
/* Tailwind (arbitrary) */
class="text-[#8af021] bg-[#8af021]"
/* SCSS */
$brand: #8af021;
/* SwiftUI */
Color(red: 0.541, green: 0.941, blue: 0.129)
/* Android */
Color.parseColor("#8af021")
/* Flutter */
Color(0xFF8AF021)
/* Python / OpenCV (BGR) */
(33, 240, 138)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. #8af021 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: #F7FDF2;
--brand-100: #F0FAE5;
--brand-200: #DEF7C4;
--brand-300: #C8F896;
--brand-400: #ACF461;
--brand-500: #8af021;
--brand-600: #7CE510;
--brand-700: #67BF0D;
--brand-800: #53990A;
--brand-900: #3E6E0C;
--brand-950: #274508;
--brand: #8af021;
--brand-ink: #000000;
}Colors that work with #8af021
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 #8af021
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 | #8721F0 | Directly opposite — maximum tension | |
| Analogous left | #F0EF21 | Neighbour, quieter | |
| Analogous right | #22F021 | Neighbour, quieter | |
| Split-complement 1 | #2122F0 | Contrast without the clash | |
| Split-complement 2 | #EF21F0 | Contrast without the clash | |
| Triadic 1 | #218AF0 | Even thirds — balanced and loud | |
| Triadic 2 | #F0218A | Even thirds — balanced and loud | |
| Tetradic | #21F0EF | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#8af021 text on a black background
contrast 14.57:1
#8af021 text on a white background
contrast 1.44:1
CSS3 live lab
The quick brown fox
color: #8af021;
background-color: #8af021;
Glowing headline
text-shadow: 2px 2px 8px #8af021;
Soft neon halo
text-shadow: 0 0 14px rgba(138, 240, 33, 0.45);
box-shadow: 0 12px 32px -8px rgba(138, 240, 33, 0.45);
border: 3px solid #8af021; background: linear-gradient(135deg, #8af021, #21F042);
Monochromatic scale
Palettes built from #8af021
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: Chartreuse (#7fff00) — ΔE2000 3.4 away, with its history, psychology and brand usage.
#8af021 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.
#8af021, answered
What color is #8af021?
#8af021 is a balanced electric green, closest to Lawn Green (ΔE2000 2.9). It sits at 90° on the hue wheel with 87% saturation and 54% lightness, which reads as neutral.
What is the RGB value of #8af021?
rgb(138, 240, 33) — 138 red, 240 green and 33 blue out of 255, or 54.1% / 94.1% / 12.9% by channel.
Is #8af021 a light or a dark color?
It is a light color. Relative luminance is 0.6783 and perceived brightness is 78%, so black text on it reaches 14.57:1.
Should I use black or white text on #8af021?
Black. It scores 14.57:1 against #8af021, versus 1.44:1 for white — AAA at any size.
What is the complementary color of #8af021?
#8721F0 sits directly opposite on the wheel. Softer options are the split-complements #2122F0 and #EF21F0, which give the same contrast with far less vibration.
What colors go well with #8af021?
For interface work: #F7FAF4 as the surface, #D6EDC0 for borders, #739B4B for secondary text, #511CF5 as an accent and #407708 for hover and pressed states. For a palette, the analogous pair #F0EF21 and #22F021 stays calm, while #8721F0 is the loudest partner.
What is #8af021 in CMYK for printing?
cmyk(43%, 0%, 86%, 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 #8af021 warm or cool?
Neutral — it scores 50 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D6F021; nudged cooler, #3CF21F.