Skip to content

#2df798

a balanced, electric green · cool · “Medium Spring Green”

RGB
45, 247, 152
HSL
152°, 93%, 57%
CMYK
82, 0, 39, 3
Luminance
0.6935

At a glance

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

Hex
#2df798
Hue
152°
green
Saturation
93%
electric
Lightness
57%
balanced
Brightness
97%
HSV value
Perceived
77%
weighted brightness
Luminance
0.6935
WCAG relative
Temperature
Cool
76/100 cool
Color family
Green
Tone
Electric
Best ink
Black
14.87:1
Closest name
Medium Spring Green
ΔE2000 0.9
Where it sits
Hue152° of 360°
Saturation93%
Lightness57%
Temperature
Warm ← → Cool76% 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#2df798
RGBrgb(45, 247, 152)
HSLhsl(152, 93%, 57%)
CMYKcmyk(82%, 0%, 39%, 3%)
LABlab(86.7 -67.8 32.6)
LCHlch(86.7 75.3 154.3)
OKLCHoklch(0.862 0.200 156.0)
Decimal3012504
Display P3color(display-p3 0.176 0.969 0.596)

Copy-ready code

/* CSS */
color: #2df798;
background-color: #2df798;
/* Tailwind (arbitrary) */
class="text-[#2df798] bg-[#2df798]"
/* SCSS */
$brand: #2df798;
/* SwiftUI */
Color(red: 0.176, green: 0.969, blue: 0.596)
/* Android */
Color.parseColor("#2df798")
/* Flutter */
Color(0xFF2DF798)
/* Python / OpenCV (BGR) */
(152, 247, 45)

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

Accessibility — WCAG contrast

Aa
#2df798 on white: 1.41:1
AA ✗ fail · AA-large · AAA
Aa
#2df798 on black: 14.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F6E392
deuteranopia · #DFD29E
tritanopia · #00F5DF

Color scale — 50 to 950

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

#F2FDF8
#E4FBF0
#C2F9DF
#93FBCA
#5DF9B0
#2df798
#09EC81
#07C56C
#069D56
#097140
#064728
Base = 500Lightest = 50 · #F2FDF8Darkest = 950 · #064728
:root {
  --brand-50: #F2FDF8;
  --brand-100: #E4FBF0;
  --brand-200: #C2F9DF;
  --brand-300: #93FBCA;
  --brand-400: #5DF9B0;
  --brand-500: #2df798;
  --brand-600: #09EC81;
  --brand-700: #07C56C;
  --brand-800: #069D56;
  --brand-900: #097140;
  --brand-950: #064728;
  --brand: #2df798;
  --brand-ink: #000000;
}

Colors that work with #2df798

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#F4FAF8
Tinted page background
Border#C0EDD8
Hairlines and dividers
Muted text#4B9B75
Captions on the surface
Accent#FB29C0
Second voice, not a rival
Dark variant#057B43
Hover, pressed, headers
Light variant#E6FEF3
Selected rows, tints
Dark surface#14241D
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 #2df798

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#F72D8C
Analogous left#2DF733
Analogous right#2DF1F7
Split-complement 1#F72DF1
Split-complement 2#F7332D
Triadic 1#982DF7
Triadic 2#F7982D
Tetradic#332DF7

RGB percentages

Red17.6%
Green96.9%
Blue59.6%

CMYK percentages

Cyan81.8%
Magenta0.0%
Yellow38.5%
Key (black)3.1%

Color previews

#2df798 text on a black background

contrast 14.87:1

Card sample

#2df798 text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 247, 152, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 247, 152, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2df798;
background: linear-gradient(135deg, #2df798, #2DCFF7);

Monochromatic scale

Palettes built from #2df798

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.

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

#2df798, answered

What color is #2df798?

#2df798 is a balanced electric green — the CSS keyword Medium Spring Green. It sits at 152° on the hue wheel with 93% saturation and 57% lightness, which reads as cool.

What is the RGB value of #2df798?

rgb(45, 247, 152) — 45 red, 247 green and 152 blue out of 255, or 17.6% / 96.9% / 59.6% by channel.

Is #2df798 a light or a dark color?

It is a light color. Relative luminance is 0.6935 and perceived brightness is 77%, so black text on it reaches 14.87:1.

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

Black. It scores 14.87:1 against #2df798, versus 1.41:1 for white — AAA at any size.

What is the complementary color of #2df798?

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

What colors go well with #2df798?

For interface work: #F4FAF8 as the surface, #C0EDD8 for borders, #4B9B75 for secondary text, #FB29C0 as an accent and #057B43 for hover and pressed states. For a palette, the analogous pair #2DF733 and #2DF1F7 stays calm, while #F72D8C is the loudest partner.

What is #2df798 in CMYK for printing?

cmyk(82%, 0%, 39%, 3%). 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 #2df798 warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2DF74E; nudged cooler, #2BF9E4.

Work with #2df798 in the Color Lab