Skip to content

#afd562

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

RGB
175, 213, 98
HSL
80°, 58%, 61%
CMYK
18, 0, 54, 17
Luminance
0.5758

At a glance

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

Hex
#afd562
Hue
80°
green
Saturation
58%
vivid
Lightness
61%
balanced
Brightness
84%
HSV value
Perceived
75%
weighted brightness
Luminance
0.5758
WCAG relative
Temperature
Warm
42/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
12.52:1
Closest name
Yellow Green
ΔE2000 4.9
Where it sits
Hue80° of 360°
Saturation58%
Lightness61%
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#afd562
RGBrgb(175, 213, 98)
HSLhsl(80, 58%, 61%)
CMYKcmyk(18%, 0%, 54%, 17%)
LABlab(80.5 -30.1 52.0)
LCHlch(80.5 60.1 120.1)
OKLCHoklch(0.822 0.149 124.8)
Decimal11523426
Display P3color(display-p3 0.686 0.835 0.384)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd562 on white: 1.68:1
AA ✗ fail · AA-large · AAA
Aa
#afd562 on black: 12.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DFC957
deuteranopia · #DAC769
tritanopia · #B6CCBB

Color scale — 50 to 950

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

#F9FBF4
#F2F7E9
#E4EFCD
#D2E7A6
#BBDB7A
#afd562
#92C134
#7AA12B
#628122
#485E1D
#2D3B12
Base = 500Lightest = 50 · #F9FBF4Darkest = 950 · #2D3B12
:root {
  --brand-50: #F9FBF4;
  --brand-100: #F2F7E9;
  --brand-200: #E4EFCD;
  --brand-300: #D2E7A6;
  --brand-400: #BBDB7A;
  --brand-500: #afd562;
  --brand-600: #92C134;
  --brand-700: #7AA12B;
  --brand-800: #628122;
  --brand-900: #485E1D;
  --brand-950: #2D3B12;
  --brand: #afd562;
  --brand-ink: #000000;
}

Colors that work with #afd562

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#DEEDC0
Hairlines and dividers
Muted text#809B4B
Captions on the surface
Accent#685ED9
Second voice, not a rival
Dark variant#4C651B
Hover, pressed, headers
Light variant#F5FAEB
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 #afd562

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#8862D5
Analogous left#D5C162
Analogous right#76D562
Split-complement 1#6276D5
Split-complement 2#C162D5
Triadic 1#62AFD5
Triadic 2#D562AF
Tetradic#62D5C1

RGB percentages

Red68.6%
Green83.5%
Blue38.4%

CMYK percentages

Cyan17.8%
Magenta0.0%
Yellow54.0%
Key (black)16.5%

Color previews

#afd562 text on a black background

contrast 12.52:1

Card sample

#afd562 text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 213, 98, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 213, 98, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd562;
background: linear-gradient(135deg, #afd562, #62D562);

Monochromatic scale

Palettes built from #afd562

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.

#afd562 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

Converts to four-color process without much drama. Proof it anyway.

#afd562, answered

What color is #afd562?

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

What is the RGB value of #afd562?

rgb(175, 213, 98) — 175 red, 213 green and 98 blue out of 255, or 68.6% / 83.5% / 38.4% by channel.

Is #afd562 a light or a dark color?

It is a light color. Relative luminance is 0.5758 and perceived brightness is 75%, so black text on it reaches 12.52:1.

Should I use black or white text on #afd562?

Black. It scores 12.52:1 against #afd562, versus 1.68:1 for white — AAA at any size.

What is the complementary color of #afd562?

#8862D5 sits directly opposite on the wheel. Softer options are the split-complements #6276D5 and #C162D5, which give the same contrast with far less vibration.

What colors go well with #afd562?

For interface work: #F8FAF4 as the surface, #DEEDC0 for borders, #809B4B for secondary text, #685ED9 as an accent and #4C651B for hover and pressed states. For a palette, the analogous pair #D5C162 and #76D562 stays calm, while #8862D5 is the loudest partner.

What is #afd562 in CMYK for printing?

cmyk(18%, 0%, 54%, 17%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #afd562 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 #D5D162; nudged cooler, #84D760.

Work with #afd562 in the Color Lab