Skip to content

#afd962

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

RGB
175, 217, 98
HSL
81°, 61%, 62%
CMYK
19, 0, 55, 15
Luminance
0.5962

At a glance

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

Hex
#afd962
Hue
81°
green
Saturation
61%
vivid
Lightness
62%
balanced
Brightness
85%
HSV value
Perceived
76%
weighted brightness
Luminance
0.5962
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
12.92:1
Closest name
Yellow Green
ΔE2000 5.1
Where it sits
Hue81° of 360°
Saturation61%
Lightness62%
Temperature
Warm ← → Cool43% 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#afd962
RGBrgb(175, 217, 98)
HSLhsl(81, 61%, 62%)
CMYKcmyk(19%, 0%, 55%, 15%)
LABlab(81.6 -32.0 53.3)
LCHlch(81.6 62.2 121.0)
OKLCHoklch(0.831 0.154 125.8)
Decimal11524450
Display P3color(display-p3 0.686 0.851 0.384)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd962 on white: 1.62:1
AA ✗ fail · AA-large · AAA
Aa
#afd962 on black: 12.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E3CC56
deuteranopia · #DECA6A
tritanopia · #B5D0BF

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afd962 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
#F2F7E8
#E3F0CC
#D1E9A5
#afd962
#A3D34A
#90C530
#78A428
#608320
#47601B
#2D3C11
Base = 400Lightest = 50 · #F8FBF4Darkest = 950 · #2D3C11
:root {
  --brand-50: #F8FBF4;
  --brand-100: #F2F7E8;
  --brand-200: #E3F0CC;
  --brand-300: #D1E9A5;
  --brand-400: #afd962;
  --brand-500: #A3D34A;
  --brand-600: #90C530;
  --brand-700: #78A428;
  --brand-800: #608320;
  --brand-900: #47601B;
  --brand-950: #2D3C11;
  --brand: #afd962;
  --brand-ink: #000000;
}

Colors that work with #afd962

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#6B5EDD
Second voice, not a rival
Dark variant#4B6719
Hover, pressed, headers
Light variant#F5FAEA
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 #afd962

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#8C62D9
Analogous left#D9C862
Analogous right#74D962
Split-complement 1#6274D9
Split-complement 2#C862D9
Triadic 1#62AFD9
Triadic 2#D962AF
Tetradic#62D9C8

RGB percentages

Red68.6%
Green85.1%
Blue38.4%

CMYK percentages

Cyan19.4%
Magenta0.0%
Yellow54.8%
Key (black)14.9%

Color previews

#afd962 text on a black background

contrast 12.92:1

Card sample

#afd962 text on a white background

contrast 1.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afd962

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.

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

#afd962, answered

What color is #afd962?

#afd962 is a balanced vivid green, closest to Yellow Green (ΔE2000 5.1). It sits at 81° on the hue wheel with 61% saturation and 62% lightness, which reads as neutral.

What is the RGB value of #afd962?

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

Is #afd962 a light or a dark color?

It is a light color. Relative luminance is 0.5962 and perceived brightness is 76%, so black text on it reaches 12.92:1.

Should I use black or white text on #afd962?

Black. It scores 12.92:1 against #afd962, versus 1.62:1 for white — AAA at any size.

What is the complementary color of #afd962?

#8C62D9 sits directly opposite on the wheel. Softer options are the split-complements #6274D9 and #C862D9, which give the same contrast with far less vibration.

What colors go well with #afd962?

For interface work: #F8FAF4 as the surface, #DDEDC0 for borders, #7F9B4B for secondary text, #6B5EDD as an accent and #4B6719 for hover and pressed states. For a palette, the analogous pair #D9C862 and #74D962 stays calm, while #8C62D9 is the loudest partner.

What is #afd962 in CMYK for printing?

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

Is #afd962 warm or cool?

Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D9D762; nudged cooler, #83DB60.

Work with #afd962 in the Color Lab