Skip to content

#2af01d

a balanced, electric green · cool · closest name: Lime

RGB
42, 240, 29
HSL
116°, 88%, 53%
CMYK
83, 0, 88, 6
Luminance
0.6290

At a glance

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

Hex
#2af01d
Hue
116°
green
Saturation
88%
electric
Lightness
53%
balanced
Brightness
94%
HSV value
Perceived
73%
weighted brightness
Luminance
0.6290
WCAG relative
Temperature
Cool
61/100 cool
Color family
Green
Tone
Electric
Best ink
Black
13.58:1
Closest name
Lime
ΔE2000 3.2
Where it sits
Hue116° of 360°
Saturation88%
Lightness53%
Temperature
Warm ← → Cool61% 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#2af01d
RGBrgb(42, 240, 29)
HSLhsl(116, 88%, 53%)
CMYKcmyk(83%, 0%, 88%, 6%)
LABlab(83.4 -79.3 76.5)
LCHlch(83.4 110.3 136.0)
OKLCHoklch(0.831 0.273 142.2)
Decimal2813981
Display P3color(display-p3 0.165 0.941 0.114)

Copy-ready code

/* CSS */
color: #2af01d;
background-color: #2af01d;
/* Tailwind (arbitrary) */
class="text-[#2af01d] bg-[#2af01d]"
/* SCSS */
$brand: #2af01d;
/* SwiftUI */
Color(red: 0.165, green: 0.941, blue: 0.114)
/* Android */
Color.parseColor("#2af01d")
/* Flutter */
Color(0xFF2AF01D)
/* Python / OpenCV (BGR) */
(29, 240, 42)

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

Accessibility — WCAG contrast

Aa
#2af01d on white: 1.55:1
AA ✗ fail · AA-large · AAA
Aa
#2af01d on black: 13.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F6D800
deuteranopia · #E1CA3F
tritanopia · #00E9CC

Color scale — 50 to 950

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

#F3FDF2
#E6FAE5
#C7F8C4
#9CF896
#6AF561
#2af01d
#1CE60F
#18BF0D
#13990A
#126F0C
#0B4507
Base = 500Lightest = 50 · #F3FDF2Darkest = 950 · #0B4507
:root {
  --brand-50: #F3FDF2;
  --brand-100: #E6FAE5;
  --brand-200: #C7F8C4;
  --brand-300: #9CF896;
  --brand-400: #6AF561;
  --brand-500: #2af01d;
  --brand-600: #1CE60F;
  --brand-700: #18BF0D;
  --brand-800: #13990A;
  --brand-900: #126F0C;
  --brand-950: #0B4507;
  --brand: #2af01d;
  --brand-ink: #000000;
}

Colors that work with #2af01d

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#F5FAF4
Tinted page background
Border#C3EDC0
Hairlines and dividers
Muted text#509B4B
Captions on the surface
Accent#B018F5
Second voice, not a rival
Dark variant#0F7808
Hover, pressed, headers
Light variant#E8FDE7
Selected rows, tints
Dark surface#152414
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 #2af01d

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#E31DF0
Analogous left#93F01D
Analogous right#1DF079
Split-complement 1#791DF0
Split-complement 2#F01D93
Triadic 1#1D2AF0
Triadic 2#F01D2A
Tetradic#1D93F0

RGB percentages

Red16.5%
Green94.1%
Blue11.4%

CMYK percentages

Cyan82.5%
Magenta0.0%
Yellow87.9%
Key (black)5.9%

Color previews

#2af01d text on a black background

contrast 13.58:1

Card sample

#2af01d text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 240, 29, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 240, 29, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2af01d;
background: linear-gradient(135deg, #2af01d, #1DF09D);

Monochromatic scale

Palettes built from #2af01d

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.

#2af01d 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.

#2af01d, answered

What color is #2af01d?

#2af01d is a balanced electric green, closest to Lime (ΔE2000 3.2). It sits at 116° on the hue wheel with 88% saturation and 53% lightness, which reads as cool.

What is the RGB value of #2af01d?

rgb(42, 240, 29) — 42 red, 240 green and 29 blue out of 255, or 16.5% / 94.1% / 11.4% by channel.

Is #2af01d a light or a dark color?

It is a light color. Relative luminance is 0.6290 and perceived brightness is 73%, so black text on it reaches 13.58:1.

Should I use black or white text on #2af01d?

Black. It scores 13.58:1 against #2af01d, versus 1.55:1 for white — AAA at any size.

What is the complementary color of #2af01d?

#E31DF0 sits directly opposite on the wheel. Softer options are the split-complements #791DF0 and #F01D93, which give the same contrast with far less vibration.

What colors go well with #2af01d?

For interface work: #F5FAF4 as the surface, #C3EDC0 for borders, #509B4B for secondary text, #B018F5 as an accent and #0F7808 for hover and pressed states. For a palette, the analogous pair #93F01D and #1DF079 stays calm, while #E31DF0 is the loudest partner.

What is #2af01d in CMYK for printing?

cmyk(83%, 0%, 88%, 6%). 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 #2af01d warm or cool?

Cool — it scores 61 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #77F01D; nudged cooler, #1AF25C.

Work with #2af01d in the Color Lab