Skip to content

#afeb3d

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

RGB
175, 235, 61
HSL
81°, 81%, 58%
CMYK
26, 0, 74, 8
Luminance
0.6887

At a glance

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

Hex
#afeb3d
Hue
81°
green
Saturation
81%
electric
Lightness
58%
balanced
Brightness
92%
HSV value
Perceived
80%
weighted brightness
Luminance
0.6887
WCAG relative
Temperature
Neutral
42/100 cool
Color family
Green
Tone
Electric
Best ink
Black
14.77:1
Closest name
Green Yellow
ΔE2000 4.5
Where it sits
Hue81° of 360°
Saturation81%
Lightness58%
Temperature
Warm ← → Cool42% cool

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

Every format

HEX#afeb3d
RGBrgb(175, 235, 61)
HSLhsl(81, 81%, 58%)
CMYKcmyk(26%, 0%, 74%, 8%)
LABlab(86.4 -42.7 72.9)
LCHlch(86.4 84.5 120.4)
OKLCHoklch(0.869 0.203 127.2)
Decimal11529021
Display P3color(display-p3 0.686 0.922 0.239)

Copy-ready code

/* CSS */
color: #afeb3d;
background-color: #afeb3d;
/* Tailwind (arbitrary) */
class="text-[#afeb3d] bg-[#afeb3d]"
/* SCSS */
$brand: #afeb3d;
/* SwiftUI */
Color(red: 0.686, green: 0.922, blue: 0.239)
/* Android */
Color.parseColor("#afeb3d")
/* Flutter */
Color(0xFFAFEB3D)
/* Python / OpenCV (BGR) */
(61, 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 #afeb3d · 14.77:1
Use #000000AAA at every size.
Aa
White text · 1.42:1
AA fail · AA large fail · AAA fail
Aa
Black text · 14.77:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #afeb3d as text scores 1.42:1 on white and 14.77:1 on black.

Accessibility — WCAG contrast

Aa
#afeb3d on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#afeb3d on black: 14.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F7DB15
deuteranopia · #EFD74E
tritanopia · #B6E0CA

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afeb3d 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
#F3F9E6
#E5F6C6
#D5F599
#C0EF66
#afeb3d
#99DE17
#80B913
#66940F
#4B6B0F
#2F430A
Base = 500Lightest = 50 · #F9FCF2Darkest = 950 · #2F430A
:root {
  --brand-50: #F9FCF2;
  --brand-100: #F3F9E6;
  --brand-200: #E5F6C6;
  --brand-300: #D5F599;
  --brand-400: #C0EF66;
  --brand-500: #afeb3d;
  --brand-600: #99DE17;
  --brand-700: #80B913;
  --brand-800: #66940F;
  --brand-900: #4B6B0F;
  --brand-950: #2F430A;
  --brand: #afeb3d;
  --brand-ink: #000000;
}

Colors that work with #afeb3d

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#F8FAF4
Tinted page background
Border#DDEDC0
Hairlines and dividers
Muted text#7F9B4B
Captions on the surface
Accent#4A39EF
Second voice, not a rival
Dark variant#50740C
Hover, pressed, headers
Light variant#F5FDE8
Selected rows, tints
Dark surface#1F2414
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 #afeb3d

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#793DEB
Analogous left#EBD03D
Analogous right#58EB3D
Split-complement 1#3D58EB
Split-complement 2#D03DEB
Triadic 1#3DAFEB
Triadic 2#EB3DAF
Tetradic#3DEBD0

RGB percentages

Red68.6%
Green92.2%
Blue23.9%

CMYK percentages

Cyan25.5%
Magenta0.0%
Yellow74.0%
Key (black)7.8%

Color previews

#afeb3d text on a black background

contrast 14.77:1

Card sample

#afeb3d text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afeb3d

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.

#afeb3d 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.

#afeb3d, answered

What color is #afeb3d?

#afeb3d is a balanced electric green, closest to Green Yellow (ΔE2000 4.5). It sits at 81° on the hue wheel with 81% saturation and 58% lightness, which reads as neutral.

What is the RGB value of #afeb3d?

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

Is #afeb3d a light or a dark color?

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

Should I use black or white text on #afeb3d?

Black. It scores 14.77:1 against #afeb3d, versus 1.42:1 for white — AAA at any size.

What is the complementary color of #afeb3d?

#793DEB sits directly opposite on the wheel. Softer options are the split-complements #3D58EB and #D03DEB, which give the same contrast with far less vibration.

What colors go well with #afeb3d?

For interface work: #F8FAF4 as the surface, #DDEDC0 for borders, #7F9B4B for secondary text, #4A39EF as an accent and #50740C for hover and pressed states. For a palette, the analogous pair #EBD03D and #58EB3D stays calm, while #793DEB is the loudest partner.

What is #afeb3d in CMYK for printing?

cmyk(26%, 0%, 74%, 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 #afeb3d warm or cool?

Neutral — it scores 42 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EBE73D; nudged cooler, #6EED3B.

Work with #afeb3d in the Color Lab