Skip to content

#9df31f

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

RGB
157, 243, 31
HSL
84°, 90%, 54%
CMYK
35, 0, 87, 5
Luminance
0.7137

At a glance

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

Hex
#9df31f
Hue
84°
green
Saturation
90%
electric
Lightness
54%
balanced
Brightness
95%
HSV value
Perceived
81%
weighted brightness
Luminance
0.7137
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Green
Tone
Electric
Best ink
Black
15.27:1
Closest name
Green Yellow
ΔE2000 2.7
Where it sits
Hue84° of 360°
Saturation90%
Lightness54%
Temperature
Warm ← → Cool45% 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#9df31f
RGBrgb(157, 243, 31)
HSLhsl(84, 90%, 54%)
CMYKcmyk(35%, 0%, 87%, 5%)
LABlab(87.7 -53.7 81.2)
LCHlch(87.7 97.3 123.5)
OKLCHoklch(0.876 0.233 131.1)
Decimal10351391
Display P3color(display-p3 0.616 0.953 0.122)

Copy-ready code

/* CSS */
color: #9df31f;
background-color: #9df31f;
/* Tailwind (arbitrary) */
class="text-[#9df31f] bg-[#9df31f]"
/* SCSS */
$brand: #9df31f;
/* SwiftUI */
Color(red: 0.616, green: 0.953, blue: 0.122)
/* Android */
Color.parseColor("#9df31f")
/* Flutter */
Color(0xFF9DF31F)
/* Python / OpenCV (BGR) */
(31, 243, 157)

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

Accessibility — WCAG contrast

Aa
#9df31f on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#9df31f on black: 15.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FEE000
deuteranopia · #F3DA3E
tritanopia · #A0E8CF

Color scale — 50 to 950

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

#F8FDF2
#F2FBE5
#E3F8C3
#D0F995
#B9F65F
#9df31f
#8FE80C
#77C20A
#609B08
#47700B
#2C4607
Base = 500Lightest = 50 · #F8FDF2Darkest = 950 · #2C4607
:root {
  --brand-50: #F8FDF2;
  --brand-100: #F2FBE5;
  --brand-200: #E3F8C3;
  --brand-300: #D0F995;
  --brand-400: #B9F65F;
  --brand-500: #9df31f;
  --brand-600: #8FE80C;
  --brand-700: #77C20A;
  --brand-800: #609B08;
  --brand-900: #47700B;
  --brand-950: #2C4607;
  --brand: #9df31f;
  --brand-ink: #000000;
}

Colors that work with #9df31f

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#F8FAF4
Tinted page background
Border#DAEDC0
Hairlines and dividers
Muted text#7A9B4B
Captions on the surface
Accent#3D1AF8
Second voice, not a rival
Dark variant#4B7907
Hover, pressed, headers
Light variant#F4FEE7
Selected rows, tints
Dark surface#1E2414
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 #9df31f

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#751FF3
Analogous left#F3DF1F
Analogous right#33F31F
Split-complement 1#1F33F3
Split-complement 2#DF1FF3
Triadic 1#1F9DF3
Triadic 2#F31F9D
Tetradic#1FF3DF

RGB percentages

Red61.6%
Green95.3%
Blue12.2%

CMYK percentages

Cyan35.4%
Magenta0.0%
Yellow87.2%
Key (black)4.7%

Color previews

#9df31f text on a black background

contrast 15.27:1

Card sample

#9df31f text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(157, 243, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(157, 243, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9df31f;
background: linear-gradient(135deg, #9df31f, #1FF32E);

Monochromatic scale

Palettes built from #9df31f

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.

#9df31f 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.

#9df31f, answered

What color is #9df31f?

#9df31f is a balanced electric green, closest to Green Yellow (ΔE2000 2.7). It sits at 84° on the hue wheel with 90% saturation and 54% lightness, which reads as neutral.

What is the RGB value of #9df31f?

rgb(157, 243, 31) — 157 red, 243 green and 31 blue out of 255, or 61.6% / 95.3% / 12.2% by channel.

Is #9df31f a light or a dark color?

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

Should I use black or white text on #9df31f?

Black. It scores 15.27:1 against #9df31f, versus 1.37:1 for white — AAA at any size.

What is the complementary color of #9df31f?

#751FF3 sits directly opposite on the wheel. Softer options are the split-complements #1F33F3 and #DF1FF3, which give the same contrast with far less vibration.

What colors go well with #9df31f?

For interface work: #F8FAF4 as the surface, #DAEDC0 for borders, #7A9B4B for secondary text, #3D1AF8 as an accent and #4B7907 for hover and pressed states. For a palette, the analogous pair #F3DF1F and #33F31F stays calm, while #751FF3 is the loudest partner.

What is #9df31f in CMYK for printing?

cmyk(35%, 0%, 87%, 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 #9df31f warm or cool?

Neutral — it scores 45 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EBF31F; nudged cooler, #4EF51D.

Work with #9df31f in the Color Lab