Skip to content

#afe545

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

RGB
175, 229, 69
HSL
80°, 76%, 58%
CMYK
24, 0, 70, 10
Luminance
0.6558

At a glance

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

Hex
#afe545
Hue
80°
green
Saturation
76%
electric
Lightness
58%
balanced
Brightness
90%
HSV value
Perceived
79%
weighted brightness
Luminance
0.6558
WCAG relative
Temperature
Warm
42/100 cool
Color family
Green
Tone
Electric
Best ink
Black
14.12:1
Closest name
Yellow Green
ΔE2000 5.7
Where it sits
Hue80° of 360°
Saturation76%
Lightness58%
Temperature
Warm ← → Cool42% 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#afe545
RGBrgb(175, 229, 69)
HSLhsl(80, 76%, 58%)
CMYKcmyk(24%, 0%, 70%, 10%)
LABlab(84.8 -39.7 68.6)
LCHlch(84.8 79.3 120.0)
OKLCHoklch(0.855 0.192 126.5)
Decimal11527493
Display P3color(display-p3 0.686 0.898 0.271)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afe545 on white: 1.49:1
AA ✗ fail · AA-large · AAA
Aa
#afe545 on black: 14.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F1D62A
deuteranopia · #E9D353
tritanopia · #B6DAC6

Color scale — 50 to 950

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

#F9FCF3
#F3F9E7
#E5F4C8
#D5F19D
#BFEA6B
#afe545
#98D71E
#7FB319
#668F14
#4B6813
#2F410C
Base = 500Lightest = 50 · #F9FCF3Darkest = 950 · #2F410C
:root {
  --brand-50: #F9FCF3;
  --brand-100: #F3F9E7;
  --brand-200: #E5F4C8;
  --brand-300: #D5F19D;
  --brand-400: #BFEA6B;
  --brand-500: #afe545;
  --brand-600: #98D71E;
  --brand-700: #7FB319;
  --brand-800: #668F14;
  --brand-900: #4B6813;
  --brand-950: #2F410C;
  --brand: #afe545;
  --brand-ink: #000000;
}

Colors that work with #afe545

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#809B4B
Captions on the surface
Accent#4F41E9
Second voice, not a rival
Dark variant#4F7010
Hover, pressed, headers
Light variant#F5FCE9
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 #afe545

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#7B45E5
Analogous left#E5CB45
Analogous right#5FE545
Split-complement 1#455FE5
Split-complement 2#CB45E5
Triadic 1#45AFE5
Triadic 2#E545AF
Tetradic#45E5CB

RGB percentages

Red68.6%
Green89.8%
Blue27.1%

CMYK percentages

Cyan23.6%
Magenta0.0%
Yellow69.9%
Key (black)10.2%

Color previews

#afe545 text on a black background

contrast 14.12:1

Card sample

#afe545 text on a white background

contrast 1.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 229, 69, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 229, 69, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afe545;
background: linear-gradient(135deg, #afe545, #45E546);

Monochromatic scale

Palettes built from #afe545

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.

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

#afe545, answered

What color is #afe545?

#afe545 is a balanced electric green, closest to Yellow Green (ΔE2000 5.7). It sits at 80° on the hue wheel with 76% saturation and 58% lightness, which reads as warm.

What is the RGB value of #afe545?

rgb(175, 229, 69) — 175 red, 229 green and 69 blue out of 255, or 68.6% / 89.8% / 27.1% by channel.

Is #afe545 a light or a dark color?

It is a light color. Relative luminance is 0.6558 and perceived brightness is 79%, so black text on it reaches 14.12:1.

Should I use black or white text on #afe545?

Black. It scores 14.12:1 against #afe545, versus 1.49:1 for white — AAA at any size.

What is the complementary color of #afe545?

#7B45E5 sits directly opposite on the wheel. Softer options are the split-complements #455FE5 and #CB45E5, which give the same contrast with far less vibration.

What colors go well with #afe545?

For interface work: #F8FAF4 as the surface, #DDEDC0 for borders, #809B4B for secondary text, #4F41E9 as an accent and #4F7010 for hover and pressed states. For a palette, the analogous pair #E5CB45 and #5FE545 stays calm, while #7B45E5 is the loudest partner.

What is #afe545 in CMYK for printing?

cmyk(24%, 0%, 70%, 10%). 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 #afe545 warm or cool?

Warm — it scores 42 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E5E045; nudged cooler, #73E743.

Work with #afe545 in the Color Lab