Skip to content

#1af166

a balanced, electric green · cool · closest name: Spring Green

RGB
26, 241, 102
HSL
141°, 89%, 52%
CMYK
89, 0, 58, 6
Luminance
0.6409

At a glance

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

Hex
#1af166
Hue
141°
green
Saturation
89%
electric
Lightness
52%
balanced
Brightness
95%
HSV value
Perceived
74%
weighted brightness
Luminance
0.6409
WCAG relative
Temperature
Cool
71/100 cool
Color family
Green
Tone
Electric
Best ink
Black
13.82:1
Closest name
Spring Green
ΔE2000 3.6
Where it sits
Hue141° of 360°
Saturation89%
Lightness52%
Temperature
Warm ← → Cool71% 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#1af166
RGBrgb(26, 241, 102)
HSLhsl(141, 89%, 52%)
CMYKcmyk(89%, 0%, 58%, 6%)
LABlab(84.0 -75.2 53.1)
LCHlch(84.0 92.0 144.8)
OKLCHoklch(0.837 0.238 148.0)
Decimal1765734
Display P3color(display-p3 0.102 0.945 0.400)

Copy-ready code

/* CSS */
color: #1af166;
background-color: #1af166;
/* Tailwind (arbitrary) */
class="text-[#1af166] bg-[#1af166]"
/* SCSS */
$brand: #1af166;
/* SwiftUI */
Color(red: 0.102, green: 0.945, blue: 0.400)
/* Android */
Color.parseColor("#1af166")
/* Flutter */
Color(0xFF1AF166)
/* Python / OpenCV (BGR) */
(102, 241, 26)

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

Accessibility — WCAG contrast

Aa
#1af166 on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#1af166 on black: 13.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F3DB58
deuteranopia · #DECC71
tritanopia · #00ECD3

Color scale — 50 to 950

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

#F2FDF6
#E5FAED
#C4F8D6
#95F9B8
#60F595
#1af166
#0EE75B
#0CC04C
#099A3C
#0B6F2F
#07451D
Base = 500Lightest = 50 · #F2FDF6Darkest = 950 · #07451D
:root {
  --brand-50: #F2FDF6;
  --brand-100: #E5FAED;
  --brand-200: #C4F8D6;
  --brand-300: #95F9B8;
  --brand-400: #60F595;
  --brand-500: #1af166;
  --brand-600: #0EE75B;
  --brand-700: #0CC04C;
  --brand-800: #099A3C;
  --brand-900: #0B6F2F;
  --brand-950: #07451D;
  --brand: #1af166;
  --brand-ink: #000000;
}

Colors that work with #1af166

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#F4FAF6
Tinted page background
Border#C0EDD0
Hairlines and dividers
Muted text#4B9B67
Captions on the surface
Accent#F615DF
Second voice, not a rival
Dark variant#07782F
Hover, pressed, headers
Light variant#E7FEEF
Selected rows, tints
Dark surface#14241A
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 #1af166

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#F11AA5
Analogous left#3AF11A
Analogous right#1AF1D2
Split-complement 1#D21AF1
Split-complement 2#F11A3A
Triadic 1#661AF1
Triadic 2#F1661A
Tetradic#1A3AF1

RGB percentages

Red10.2%
Green94.5%
Blue40.0%

CMYK percentages

Cyan89.2%
Magenta0.0%
Yellow57.7%
Key (black)5.5%

Color previews

#1af166 text on a black background

contrast 13.82:1

Card sample

#1af166 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(26, 241, 102, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(26, 241, 102, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1af166;
background: linear-gradient(135deg, #1af166, #1AEDF1);

Monochromatic scale

Palettes built from #1af166

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.

#1af166 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.

#1af166, answered

What color is #1af166?

#1af166 is a balanced electric green, closest to Spring Green (ΔE2000 3.6). It sits at 141° on the hue wheel with 89% saturation and 52% lightness, which reads as cool.

What is the RGB value of #1af166?

rgb(26, 241, 102) — 26 red, 241 green and 102 blue out of 255, or 10.2% / 94.5% / 40% by channel.

Is #1af166 a light or a dark color?

It is a light color. Relative luminance is 0.6409 and perceived brightness is 74%, so black text on it reaches 13.82:1.

Should I use black or white text on #1af166?

Black. It scores 13.82:1 against #1af166, versus 1.52:1 for white — AAA at any size.

What is the complementary color of #1af166?

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

What colors go well with #1af166?

For interface work: #F4FAF6 as the surface, #C0EDD0 for borders, #4B9B67 for secondary text, #F615DF as an accent and #07782F for hover and pressed states. For a palette, the analogous pair #3AF11A and #1AF1D2 stays calm, while #F11AA5 is the loudest partner.

What is #1af166 in CMYK for printing?

cmyk(89%, 0%, 58%, 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 #1af166 warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1DF11A; nudged cooler, #18F3B6.

Work with #1af166 in the Color Lab