Skip to content

#8af28f

a light, electric green · cool · closest name: Light Green

RGB
138, 242, 143
HSL
123°, 80%, 75%
CMYK
43, 0, 41, 5
Luminance
0.7089

At a glance

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

Hex
#8af28f
Hue
123°
green
Saturation
80%
electric
Lightness
75%
light
Brightness
95%
HSV value
Perceived
81%
weighted brightness
Luminance
0.7089
WCAG relative
Temperature
Cool
64/100 cool
Color family
Green
Tone
Electric
Best ink
Black
15.18:1
Closest name
Light Green
ΔE2000 1.2
Where it sits
Hue123° of 360°
Saturation80%
Lightness75%
Temperature
Warm ← → Cool64% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#8af28f
RGBrgb(138, 242, 143)
HSLhsl(123, 80%, 75%)
CMYKcmyk(43%, 0%, 41%, 5%)
LABlab(87.4 -49.9 38.5)
LCHlch(87.4 63.0 142.3)
OKLCHoklch(0.874 0.166 145.0)
Decimal9106063
Display P3color(display-p3 0.541 0.949 0.561)

Copy-ready code

/* CSS */
color: #8af28f;
background-color: #8af28f;
/* Tailwind (arbitrary) */
class="text-[#8af28f] bg-[#8af28f]"
/* SCSS */
$brand: #8af28f;
/* SwiftUI */
Color(red: 0.541, green: 0.949, blue: 0.561)
/* Android */
Color.parseColor("#8af28f")
/* Flutter */
Color(0xFF8AF28F)
/* Python / OpenCV (BGR) */
(143, 242, 138)

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 #8af28f · 15.18:1
Use #000000AAA at every size.
Aa
White text · 1.38:1
AA fail · AA large fail · AAA fail
Aa
Black text · 15.18:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #8af28f as text scores 1.38:1 on white and 15.18:1 on black.

Accessibility — WCAG contrast

Aa
#8af28f on white: 1.38:1
AA ✗ fail · AA-large · AAA
Aa
#8af28f on black: 15.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F5E188
deuteranopia · #E6D795
tritanopia · #7CEDDA

Color scale — 50 to 950

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

#F3FCF3
#E6F9E7
#C7F5C9
#8af28f
#68EE6E
#35E93E
#18DC22
#14B81C
#109317
#106A15
#0A420D
Base = 300Lightest = 50 · #F3FCF3Darkest = 950 · #0A420D
:root {
  --brand-50: #F3FCF3;
  --brand-100: #E6F9E7;
  --brand-200: #C7F5C9;
  --brand-300: #8af28f;
  --brand-400: #68EE6E;
  --brand-500: #35E93E;
  --brand-600: #18DC22;
  --brand-700: #14B81C;
  --brand-800: #109317;
  --brand-900: #106A15;
  --brand-950: #0A420D;
  --brand: #8af28f;
  --brand-ink: #000000;
}

Colors that work with #8af28f

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#F4FAF5
Tinted page background
Border#C0EDC2
Hairlines and dividers
Muted text#4B9B4E
Captions on the surface
Accent#9A10BC
Second voice, not a rival
Dark variant#0D7312
Hover, pressed, headers
Light variant#E8FCE9
Selected rows, tints
Dark surface#142414
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 #8af28f

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#F28AED
Analogous left#B9F28A
Analogous right#8AF2C3
Split-complement 1#C38AF2
Split-complement 2#F28AB9
Triadic 1#8F8AF2
Triadic 2#F28F8A
Tetradic#8AB9F2

RGB percentages

Red54.1%
Green94.9%
Blue56.1%

CMYK percentages

Cyan43.0%
Magenta0.0%
Yellow40.9%
Key (black)5.1%

Color previews

#8af28f text on a black background

contrast 15.18:1

Card sample

#8af28f text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(138, 242, 143, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(138, 242, 143, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8af28f;
background: linear-gradient(135deg, #8af28f, #8AF2D4);

Monochromatic scale

Palettes built from #8af28f

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.

#8af28f 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.

#8af28f, answered

What color is #8af28f?

#8af28f is a light electric green, closest to Light Green (ΔE2000 1.2). It sits at 123° on the hue wheel with 80% saturation and 75% lightness, which reads as cool.

What is the RGB value of #8af28f?

rgb(138, 242, 143) — 138 red, 242 green and 143 blue out of 255, or 54.1% / 94.9% / 56.1% by channel.

Is #8af28f a light or a dark color?

It is a light color. Relative luminance is 0.7089 and perceived brightness is 81%, so black text on it reaches 15.18:1.

Should I use black or white text on #8af28f?

Black. It scores 15.18:1 against #8af28f, versus 1.38:1 for white — AAA at any size.

What is the complementary color of #8af28f?

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

What colors go well with #8af28f?

For interface work: #F4FAF5 as the surface, #C0EDC2 for borders, #4B9B4E for secondary text, #9A10BC as an accent and #0D7312 for hover and pressed states. For a palette, the analogous pair #B9F28A and #8AF2C3 stays calm, while #F28AED is the loudest partner.

What is #8af28f in CMYK for printing?

cmyk(43%, 0%, 41%, 5%). 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 #8af28f warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #ABF28A; nudged cooler, #89F3B5.

Work with #8af28f in the Color Lab