Skip to content

#afdf55

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

RGB
175, 223, 85
HSL
81°, 68%, 60%
CMYK
22, 0, 62, 13
Luminance
0.6255

At a glance

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

Hex
#afdf55
Hue
81°
green
Saturation
68%
vivid
Lightness
60%
balanced
Brightness
87%
HSV value
Perceived
78%
weighted brightness
Luminance
0.6255
WCAG relative
Temperature
Neutral
42/100 cool
Color family
Green
Tone
Vivid
Best ink
Black
13.51:1
Closest name
Yellow Green
ΔE2000 4.9
Where it sits
Hue81° of 360°
Saturation68%
Lightness60%
Temperature
Warm ← → Cool42% 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#afdf55
RGBrgb(175, 223, 85)
HSLhsl(81, 68%, 60%)
CMYKcmyk(22%, 0%, 62%, 13%)
LABlab(83.2 -35.9 60.8)
LCHlch(83.2 70.5 120.6)
OKLCHoklch(0.843 0.173 126.2)
Decimal11525973
Display P3color(display-p3 0.686 0.875 0.333)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf55 on white: 1.55:1
AA ✗ fail · AA-large · AAA
Aa
#afdf55 on black: 13.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #EAD144
deuteranopia · #E3CF5F
tritanopia · #B6D5C2

Color scale — 50 to 950

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

#F9FBF3
#F2F8E8
#E4F2CA
#D3EDA1
#BCE471
#afdf55
#94CE27
#7BAC20
#63891A
#496417
#2E3E0E
Base = 500Lightest = 50 · #F9FBF3Darkest = 950 · #2E3E0E
:root {
  --brand-50: #F9FBF3;
  --brand-100: #F2F8E8;
  --brand-200: #E4F2CA;
  --brand-300: #D3EDA1;
  --brand-400: #BCE471;
  --brand-500: #afdf55;
  --brand-600: #94CE27;
  --brand-700: #7BAC20;
  --brand-800: #63891A;
  --brand-900: #496417;
  --brand-950: #2E3E0E;
  --brand: #afdf55;
  --brand-ink: #000000;
}

Colors that work with #afdf55

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#5F51E3
Second voice, not a rival
Dark variant#4D6B14
Hover, pressed, headers
Light variant#F5FBEA
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 #afdf55

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#8555DF
Analogous left#DFCA55
Analogous right#6ADF55
Split-complement 1#556ADF
Split-complement 2#CA55DF
Triadic 1#55AFDF
Triadic 2#DF55AF
Tetradic#55DFCA

RGB percentages

Red68.6%
Green87.5%
Blue33.3%

CMYK percentages

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

Color previews

#afdf55 text on a black background

contrast 13.51:1

Card sample

#afdf55 text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf55

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.

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

#afdf55, answered

What color is #afdf55?

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

What is the RGB value of #afdf55?

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

Is #afdf55 a light or a dark color?

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

Should I use black or white text on #afdf55?

Black. It scores 13.51:1 against #afdf55, versus 1.55:1 for white — AAA at any size.

What is the complementary color of #afdf55?

#8555DF sits directly opposite on the wheel. Softer options are the split-complements #556ADF and #CA55DF, which give the same contrast with far less vibration.

What colors go well with #afdf55?

For interface work: #F8FAF4 as the surface, #DDEDC0 for borders, #7F9B4B for secondary text, #5F51E3 as an accent and #4D6B14 for hover and pressed states. For a palette, the analogous pair #DFCA55 and #6ADF55 stays calm, while #8555DF is the loudest partner.

What is #afdf55 in CMYK for printing?

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

Is #afdf55 warm or cool?

Neutral — it scores 42 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DFDC55; nudged cooler, #7BE153.

Work with #afdf55 in the Color Lab