Skip to content

#afff8b

a light, electric green · neutral · closest name: Pale Green

RGB
175, 255, 139
HSL
101°, 100%, 77%
CMYK
31, 0, 46, 0
Luminance
0.8250

At a glance

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

Hex
#afff8b
Hue
101°
green
Saturation
100%
electric
Lightness
77%
light
Brightness
100%
HSV value
Perceived
87%
weighted brightness
Luminance
0.8250
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Green
Tone
Electric
Best ink
Black
17.50:1
Closest name
Pale Green
ΔE2000 4.3
Where it sits
Hue101° of 360°
Saturation100%
Lightness77%
Temperature
Warm ← → Cool55% 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#afff8b
RGBrgb(175, 255, 139)
HSLhsl(101, 100%, 77%)
CMYKcmyk(31%, 0%, 46%, 0%)
LABlab(92.8 -44.6 47.6)
LCHlch(92.8 65.3 133.1)
OKLCHoklch(0.922 0.168 136.7)
Decimal11534219
Display P3color(display-p3 0.686 1.000 0.545)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afff8b on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#afff8b on black: 17.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFEF82
deuteranopia · #FAE892
tritanopia · #ADF8E3

Color scale — 50 to 950

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

#F5FEF1
#EBFCE3
#D3FCC0
#afff8b
#8BFF57
#64FF1F
#4CF500
#3FCC00
#33A300
#287605
#194903
Base = 300Lightest = 50 · #F5FEF1Darkest = 950 · #194903
:root {
  --brand-50: #F5FEF1;
  --brand-100: #EBFCE3;
  --brand-200: #D3FCC0;
  --brand-300: #afff8b;
  --brand-400: #8BFF57;
  --brand-500: #64FF1F;
  --brand-600: #4CF500;
  --brand-700: #3FCC00;
  --brand-800: #33A300;
  --brand-900: #287605;
  --brand-950: #194903;
  --brand: #afff8b;
  --brand-ink: #000000;
}

Colors that work with #afff8b

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#F6FAF4
Tinted page background
Border#CEEDC0
Hairlines and dividers
Muted text#639B4B
Captions on the surface
Accent#5A00CC
Second voice, not a rival
Dark variant#288000
Hover, pressed, headers
Light variant#EDFFE5
Selected rows, tints
Dark surface#192414
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 #afff8b

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#DB8BFF
Analogous left#E9FF8B
Analogous right#8BFFA1
Split-complement 1#A18BFF
Split-complement 2#FF8BE9
Triadic 1#8BAFFF
Triadic 2#FF8BAF
Tetradic#8BE9FF

RGB percentages

Red68.6%
Green100.0%
Blue54.5%

CMYK percentages

Cyan31.4%
Magenta0.0%
Yellow45.5%
Key (black)0.0%

Color previews

#afff8b text on a black background

contrast 17.50:1

Card sample

#afff8b text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 255, 139, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 255, 139, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afff8b;
background: linear-gradient(135deg, #afff8b, #8BFFB5);

Monochromatic scale

Palettes built from #afff8b

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.

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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#afff8b, answered

What color is #afff8b?

#afff8b is a light electric green, closest to Pale Green (ΔE2000 4.3). It sits at 101° on the hue wheel with 100% saturation and 77% lightness, which reads as neutral.

What is the RGB value of #afff8b?

rgb(175, 255, 139) — 175 red, 255 green and 139 blue out of 255, or 68.6% / 100% / 54.5% by channel.

Is #afff8b a light or a dark color?

It is a light color. Relative luminance is 0.8250 and perceived brightness is 87%, so black text on it reaches 17.50:1.

Should I use black or white text on #afff8b?

Black. It scores 17.50:1 against #afff8b, versus 1.20:1 for white — AAA at any size.

What is the complementary color of #afff8b?

#DB8BFF sits directly opposite on the wheel. Softer options are the split-complements #A18BFF and #FF8BE9, which give the same contrast with far less vibration.

What colors go well with #afff8b?

For interface work: #F6FAF4 as the surface, #CEEDC0 for borders, #639B4B for secondary text, #5A00CC as an accent and #288000 for hover and pressed states. For a palette, the analogous pair #E9FF8B and #8BFFA1 stays calm, while #DB8BFF is the loudest partner.

What is #afff8b in CMYK for printing?

cmyk(31%, 0%, 46%, 0%). 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 #afff8b warm or cool?

Neutral — it scores 55 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DAFF8B; nudged cooler, #8BFF92.

Work with #afff8b in the Color Lab