Skip to content

#afdf72

a light, vivid green · neutral · closest name: Yellow Green

RGB
175, 223, 114
HSL
86°, 63%, 66%
CMYK
22, 0, 49, 13
Luminance
0.6310

At a glance

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

Hex
#afdf72
Hue
86°
green
Saturation
63%
vivid
Lightness
66%
light
Brightness
87%
HSV value
Perceived
78%
weighted brightness
Luminance
0.6310
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
13.62:1
Closest name
Yellow Green
ΔE2000 7.1
Where it sits
Hue86° of 360°
Saturation63%
Lightness66%
Temperature
Warm ← → Cool47% 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#afdf72
RGBrgb(175, 223, 114)
HSLhsl(86, 63%, 66%)
CMYKcmyk(22%, 0%, 49%, 13%)
LABlab(83.5 -33.2 48.1)
LCHlch(83.5 58.4 124.6)
OKLCHoklch(0.846 0.147 128.7)
Decimal11526002
Display P3color(display-p3 0.686 0.875 0.447)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf72 on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#afdf72 on black: 13.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E8D269
deuteranopia · #E1CF79
tritanopia · #B3D7C6

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afdf72 is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F8FBF4
#F1F7E8
#E0F0CB
#CBEAA4
#afdf72
#97D548
#84C82D
#6EA626
#58851E
#41611A
#293C10
Base = 400Lightest = 50 · #F8FBF4Darkest = 950 · #293C10
:root {
  --brand-50: #F8FBF4;
  --brand-100: #F1F7E8;
  --brand-200: #E0F0CB;
  --brand-300: #CBEAA4;
  --brand-400: #afdf72;
  --brand-500: #97D548;
  --brand-600: #84C82D;
  --brand-700: #6EA626;
  --brand-800: #58851E;
  --brand-900: #41611A;
  --brand-950: #293C10;
  --brand: #afdf72;
  --brand-ink: #000000;
}

Colors that work with #afdf72

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#D9EDC0
Hairlines and dividers
Muted text#789B4B
Captions on the surface
Accent#856FE2
Second voice, not a rival
Dark variant#456818
Hover, pressed, headers
Light variant#F3FAEA
Selected rows, tints
Dark surface#1D2414
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 #afdf72

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
  • Card and section backgrounds
  • 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
  • White 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#A272DF
Analogous left#DFD872
Analogous right#79DF72
Split-complement 1#7279DF
Split-complement 2#D872DF
Triadic 1#72AFDF
Triadic 2#DF72AF
Tetradic#72DFD8

RGB percentages

Red68.6%
Green87.5%
Blue44.7%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow48.9%
Key (black)12.5%

Color previews

#afdf72 text on a black background

contrast 13.62:1

Card sample

#afdf72 text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 223, 114, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 223, 114, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afdf72;
background: linear-gradient(135deg, #afdf72, #72DF7E);

Monochromatic scale

Palettes built from #afdf72

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.

#afdf72 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#afdf72, answered

What color is #afdf72?

#afdf72 is a light vivid green, closest to Yellow Green (ΔE2000 7.1). It sits at 86° on the hue wheel with 63% saturation and 66% lightness, which reads as neutral.

What is the RGB value of #afdf72?

rgb(175, 223, 114) — 175 red, 223 green and 114 blue out of 255, or 68.6% / 87.5% / 44.7% by channel.

Is #afdf72 a light or a dark color?

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

Should I use black or white text on #afdf72?

Black. It scores 13.62:1 against #afdf72, versus 1.54:1 for white — AAA at any size.

What is the complementary color of #afdf72?

#A272DF sits directly opposite on the wheel. Softer options are the split-complements #7279DF and #D872DF, which give the same contrast with far less vibration.

What colors go well with #afdf72?

For interface work: #F8FAF4 as the surface, #D9EDC0 for borders, #789B4B for secondary text, #856FE2 as an accent and #456818 for hover and pressed states. For a palette, the analogous pair #DFD872 and #79DF72 stays calm, while #A272DF is the loudest partner.

What is #afdf72 in CMYK for printing?

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

Is #afdf72 warm or cool?

Neutral — it scores 47 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D7DF72; nudged cooler, #86E170.

Work with #afdf72 in the Color Lab