Skip to content

#afe300

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

RGB
175, 227, 0
HSL
74°, 100%, 45%
CMYK
23, 0, 100, 11
Luminance
0.6405

At a glance

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

Hex
#afe300
Hue
74°
green
Saturation
100%
electric
Lightness
45%
dark
Brightness
89%
HSV value
Perceived
78%
weighted brightness
Luminance
0.6405
WCAG relative
Temperature
Warm
36/100 cool
Color family
Green
Tone
Electric
Best ink
Black
13.81:1
Closest name
Yellow Green
ΔE2000 6.4
Where it sits
Hue74° of 360°
Saturation100%
Lightness45%
Temperature
Warm ← → Cool36% 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#afe300
RGBrgb(175, 227, 0)
HSLhsl(74, 100%, 45%)
CMYKcmyk(23%, 0%, 100%, 11%)
LABlab(84.0 -40.9 82.2)
LCHlch(84.0 91.8 116.4)
OKLCHoklch(0.848 0.212 124.6)
Decimal11526912
Display P3color(display-p3 0.686 0.890 0.000)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afe300 on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#afe300 on black: 13.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F0D300
deuteranopia · #E9D12F
tritanopia · #B8D7C1

Color scale — 50 to 950

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

#FBFEF1
#F7FCE3
#EEFCC0
#E5FF8F
#D9FF57
#CCFF1F
#afe300
#9DCC00
#7EA300
#5C7605
#394903
Base = 600Lightest = 50 · #FBFEF1Darkest = 950 · #394903
:root {
  --brand-50: #FBFEF1;
  --brand-100: #F7FCE3;
  --brand-200: #EEFCC0;
  --brand-300: #E5FF8F;
  --brand-400: #D9FF57;
  --brand-500: #CCFF1F;
  --brand-600: #afe300;
  --brand-700: #9DCC00;
  --brand-800: #7EA300;
  --brand-900: #5C7605;
  --brand-950: #394903;
  --brand: #afe300;
  --brand-ink: #000000;
}

Colors that work with #afe300

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#E2EDC0
Hairlines and dividers
Muted text#899B4B
Captions on the surface
Accent#0005E3
Second voice, not a rival
Dark variant#628000
Hover, pressed, headers
Light variant#F9FFE5
Selected rows, tints
Dark surface#212414
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 #afe300

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
  • Headers, footers and dark-mode surfaces
  • 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
  • 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#3400E3
Analogous left#E3A500
Analogous right#3EE300
Split-complement 1#003EE3
Split-complement 2#A500E3
Triadic 1#00AFE3
Triadic 2#E300AF
Tetradic#00E3A5

RGB percentages

Red68.6%
Green89.0%
Blue0.0%

CMYK percentages

Cyan22.9%
Magenta0.0%
Yellow100.0%
Key (black)11.0%

Color previews

#afe300 text on a black background

contrast 13.81:1

Card sample

#afe300 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afe300

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.

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

#afe300, answered

What color is #afe300?

#afe300 is a dark electric green, closest to Yellow Green (ΔE2000 6.4). It sits at 74° on the hue wheel with 100% saturation and 45% lightness, which reads as warm.

What is the RGB value of #afe300?

rgb(175, 227, 0) — 175 red, 227 green and 0 blue out of 255, or 68.6% / 89% / 0% by channel.

Is #afe300 a light or a dark color?

It is a light color. Relative luminance is 0.6405 and perceived brightness is 78%, so black text on it reaches 13.81:1.

Should I use black or white text on #afe300?

Black. It scores 13.81:1 against #afe300, versus 1.52:1 for white — AAA at any size.

What is the complementary color of #afe300?

#3400E3 sits directly opposite on the wheel. Softer options are the split-complements #003EE3 and #A500E3, which give the same contrast with far less vibration.

What colors go well with #afe300?

For interface work: #F9FAF4 as the surface, #E2EDC0 for borders, #899B4B for secondary text, #0005E3 as an accent and #628000 for hover and pressed states. For a palette, the analogous pair #E3A500 and #3EE300 stays calm, while #3400E3 is the loudest partner.

What is #afe300 in CMYK for printing?

cmyk(23%, 0%, 100%, 11%). 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 #afe300 warm or cool?

Warm — it scores 36 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E3C400; nudged cooler, #5CE300.

Work with #afe300 in the Color Lab