Skip to content

#5afb02

a balanced, electric green · neutral · closest name: Lawn Green

RGB
90, 251, 2
HSL
99°, 98%, 50%
CMYK
64, 0, 99, 2
Luminance
0.7117

At a glance

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

Hex
#5afb02
Hue
99°
green
Saturation
98%
electric
Lightness
50%
balanced
Brightness
98%
HSV value
Perceived
78%
weighted brightness
Luminance
0.7117
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Green
Tone
Electric
Best ink
Black
15.23:1
Closest name
Lawn Green
ΔE2000 2.5
Where it sits
Hue99° of 360°
Saturation98%
Lightness50%
Temperature
Warm ← → Cool54% 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#5afb02
RGBrgb(90, 251, 2)
HSLhsl(99, 98%, 50%)
CMYKcmyk(64%, 0%, 99%, 2%)
LABlab(87.6 -75.8 83.3)
LCHlch(87.6 112.6 132.3)
OKLCHoklch(0.868 0.275 139.3)
Decimal5962498
Display P3color(display-p3 0.353 0.984 0.008)

Copy-ready code

/* CSS */
color: #5afb02;
background-color: #5afb02;
/* Tailwind (arbitrary) */
class="text-[#5afb02] bg-[#5afb02]"
/* SCSS */
$brand: #5afb02;
/* SwiftUI */
Color(red: 0.353, green: 0.984, blue: 0.008)
/* Android */
Color.parseColor("#5afb02")
/* Flutter */
Color(0xFF5AFB02)
/* Python / OpenCV (BGR) */
(2, 251, 90)

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

Accessibility — WCAG contrast

Aa
#5afb02 on white: 1.38:1
AA ✗ fail · AA-large · AAA
Aa
#5afb02 on black: 15.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE300
deuteranopia · #F0D739
tritanopia · #42F2D5

Color scale — 50 to 950

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

#F6FEF1
#ECFCE3
#D5FBC1
#B7FE90
#93FE58
#6EFD20
#5afb02
#49CA02
#3AA201
#2D7506
#1C4904
Base = 600Lightest = 50 · #F6FEF1Darkest = 950 · #1C4904
:root {
  --brand-50: #F6FEF1;
  --brand-100: #ECFCE3;
  --brand-200: #D5FBC1;
  --brand-300: #B7FE90;
  --brand-400: #93FE58;
  --brand-500: #6EFD20;
  --brand-600: #5afb02;
  --brand-700: #49CA02;
  --brand-800: #3AA201;
  --brand-900: #2D7506;
  --brand-950: #1C4904;
  --brand: #5afb02;
  --brand-ink: #000000;
}

Colors that work with #5afb02

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#D0EDC0
Hairlines and dividers
Muted text#679B4B
Captions on the surface
Accent#6400FD
Second voice, not a rival
Dark variant#2D7E01
Hover, pressed, headers
Light variant#EFFFE6
Selected rows, tints
Dark surface#1A2414
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 #5afb02

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#A302FB
Analogous left#D6FB02
Analogous right#02FB27
Split-complement 1#2702FB
Split-complement 2#FB02D6
Triadic 1#025AFB
Triadic 2#FB025A
Tetradic#02D6FB

RGB percentages

Red35.3%
Green98.4%
Blue0.8%

CMYK percentages

Cyan64.1%
Magenta0.0%
Yellow99.2%
Key (black)1.6%

Color previews

#5afb02 text on a black background

contrast 15.23:1

Card sample

#5afb02 text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(90, 251, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(90, 251, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5afb02;
background: linear-gradient(135deg, #5afb02, #02FB50);

Monochromatic scale

Palettes built from #5afb02

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.

#5afb02 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

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

#5afb02, answered

What color is #5afb02?

#5afb02 is a balanced electric green, closest to Lawn Green (ΔE2000 2.5). It sits at 99° on the hue wheel with 98% saturation and 50% lightness, which reads as neutral.

What is the RGB value of #5afb02?

rgb(90, 251, 2) — 90 red, 251 green and 2 blue out of 255, or 35.3% / 98.4% / 0.8% by channel.

Is #5afb02 a light or a dark color?

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

Should I use black or white text on #5afb02?

Black. It scores 15.23:1 against #5afb02, versus 1.38:1 for white — AAA at any size.

What is the complementary color of #5afb02?

#A302FB sits directly opposite on the wheel. Softer options are the split-complements #2702FB and #FB02D6, which give the same contrast with far less vibration.

What colors go well with #5afb02?

For interface work: #F6FAF4 as the surface, #D0EDC0 for borders, #679B4B for secondary text, #6400FD as an accent and #2D7E01 for hover and pressed states. For a palette, the analogous pair #D6FB02 and #02FB27 stays calm, while #A302FB is the loudest partner.

What is #5afb02 in CMYK for printing?

cmyk(64%, 0%, 99%, 2%). 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 #5afb02 warm or cool?

Neutral — it scores 54 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B5FB02; nudged cooler, #00FD03.

Work with #5afb02 in the Color Lab