Skip to content

#afeb20

a balanced, electric green · warm · closest name: Green Yellow

RGB
175, 235, 32
HSL
78°, 84%, 52%
CMYK
26, 0, 86, 8
Luminance
0.6863

At a glance

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

Hex
#afeb20
Hue
78°
green
Saturation
84%
electric
Lightness
52%
balanced
Brightness
92%
HSV value
Perceived
80%
weighted brightness
Luminance
0.6863
WCAG relative
Temperature
Warm
40/100 cool
Color family
Green
Tone
Electric
Best ink
Black
14.73:1
Closest name
Green Yellow
ΔE2000 4.5
Where it sits
Hue78° of 360°
Saturation84%
Lightness52%
Temperature
Warm ← → Cool40% cool

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

Every format

HEX#afeb20
RGBrgb(175, 235, 32)
HSLhsl(78, 84%, 52%)
CMYKcmyk(26%, 0%, 86%, 8%)
LABlab(86.3 -43.9 80.3)
LCHlch(86.3 91.5 118.7)
OKLCHoklch(0.867 0.215 126.4)
Decimal11528992
Display P3color(display-p3 0.686 0.922 0.125)

Copy-ready code

/* CSS */
color: #afeb20;
background-color: #afeb20;
/* Tailwind (arbitrary) */
class="text-[#afeb20] bg-[#afeb20]"
/* SCSS */
$brand: #afeb20;
/* SwiftUI */
Color(red: 0.686, green: 0.922, blue: 0.125)
/* Android */
Color.parseColor("#afeb20")
/* Flutter */
Color(0xFFAFEB20)
/* Python / OpenCV (BGR) */
(32, 235, 175)

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

Accessibility — WCAG contrast

Aa
#afeb20 on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#afeb20 on black: 14.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F8DA00
deuteranopia · #F0D73C
tritanopia · #B7E0C8

Color scale — 50 to 950

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

#F9FCF2
#F4FAE6
#E8F6C5
#DAF698
#C8F165
#afeb20
#A4E114
#89BB11
#6E960D
#506C0E
#324409
Base = 500Lightest = 50 · #F9FCF2Darkest = 950 · #324409
:root {
  --brand-50: #F9FCF2;
  --brand-100: #F4FAE6;
  --brand-200: #E8F6C5;
  --brand-300: #DAF698;
  --brand-400: #C8F165;
  --brand-500: #afeb20;
  --brand-600: #A4E114;
  --brand-700: #89BB11;
  --brand-800: #6E960D;
  --brand-900: #506C0E;
  --brand-950: #324409;
  --brand: #afeb20;
  --brand-ink: #000000;
}

Colors that work with #afeb20

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#F9FAF4
Tinted page background
Border#DFEDC0
Hairlines and dividers
Muted text#839B4B
Captions on the surface
Accent#251BF0
Second voice, not a rival
Dark variant#56750B
Hover, pressed, headers
Light variant#F7FDE8
Selected rows, tints
Dark surface#202414
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 #afeb20

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
  • 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
  • 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#5C20EB
Analogous left#EBC120
Analogous right#4AEB20
Split-complement 1#204AEB
Split-complement 2#C120EB
Triadic 1#20AFEB
Triadic 2#EB20AF
Tetradic#20EBC1

RGB percentages

Red68.6%
Green92.2%
Blue12.5%

CMYK percentages

Cyan25.5%
Magenta0.0%
Yellow86.4%
Key (black)7.8%

Color previews

#afeb20 text on a black background

contrast 14.73:1

Card sample

#afeb20 text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 235, 32, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 235, 32, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afeb20;
background: linear-gradient(135deg, #afeb20, #28EB20);

Monochromatic scale

Palettes built from #afeb20

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.

#afeb20 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
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#afeb20, answered

What color is #afeb20?

#afeb20 is a balanced electric green, closest to Green Yellow (ΔE2000 4.5). It sits at 78° on the hue wheel with 84% saturation and 52% lightness, which reads as warm.

What is the RGB value of #afeb20?

rgb(175, 235, 32) — 175 red, 235 green and 32 blue out of 255, or 68.6% / 92.2% / 12.5% by channel.

Is #afeb20 a light or a dark color?

It is a light color. Relative luminance is 0.6863 and perceived brightness is 80%, so black text on it reaches 14.73:1.

Should I use black or white text on #afeb20?

Black. It scores 14.73:1 against #afeb20, versus 1.43:1 for white — AAA at any size.

What is the complementary color of #afeb20?

#5C20EB sits directly opposite on the wheel. Softer options are the split-complements #204AEB and #C120EB, which give the same contrast with far less vibration.

What colors go well with #afeb20?

For interface work: #F9FAF4 as the surface, #DFEDC0 for borders, #839B4B for secondary text, #251BF0 as an accent and #56750B for hover and pressed states. For a palette, the analogous pair #EBC120 and #4AEB20 stays calm, while #5C20EB is the loudest partner.

What is #afeb20 in CMYK for printing?

cmyk(26%, 0%, 86%, 8%). 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 #afeb20 warm or cool?

Warm — it scores 40 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EBDC20; nudged cooler, #64ED1E.

Work with #afeb20 in the Color Lab