Skip to content

#2df38e

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

RGB
45, 243, 142
HSL
149°, 89%, 57%
CMYK
82, 0, 42, 5
Luminance
0.6661

At a glance

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

Hex
#2df38e
Hue
149°
green
Saturation
89%
electric
Lightness
57%
balanced
Brightness
95%
HSV value
Perceived
76%
weighted brightness
Luminance
0.6661
WCAG relative
Temperature
Cool
75/100 cool
Color family
Green
Tone
Electric
Best ink
Black
14.32:1
Closest name
Medium Spring Green
ΔE2000 2.1
Where it sits
Hue149° of 360°
Saturation89%
Lightness57%
Temperature
Warm ← → Cool75% 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#2df38e
RGBrgb(45, 243, 142)
HSLhsl(149, 89%, 57%)
CMYKcmyk(82%, 0%, 42%, 5%)
LABlab(85.3 -68.3 35.8)
LCHlch(85.3 77.1 152.3)
OKLCHoklch(0.850 0.204 154.2)
Decimal3011470
Display P3color(display-p3 0.176 0.953 0.557)

Copy-ready code

/* CSS */
color: #2df38e;
background-color: #2df38e;
/* Tailwind (arbitrary) */
class="text-[#2df38e] bg-[#2df38e]"
/* SCSS */
$brand: #2df38e;
/* SwiftUI */
Color(red: 0.176, green: 0.953, blue: 0.557)
/* Android */
Color.parseColor("#2df38e")
/* Flutter */
Color(0xFF2DF38E)
/* Python / OpenCV (BGR) */
(142, 243, 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 #2df38e · 14.32:1
Use #000000AAA at every size.
Aa
White text · 1.47:1
AA fail · AA large fail · AAA fail
Aa
Black text · 14.32:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #2df38e as text scores 1.47:1 on white and 14.32:1 on black.

Accessibility — WCAG contrast

Aa
#2df38e on white: 1.47:1
AA ✗ fail · AA-large · AAA
Aa
#2df38e on black: 14.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F2DF87
deuteranopia · #DCCF95
tritanopia · #00F0DA

Color scale — 50 to 950

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

#F2FDF7
#E5FBEF
#C4F8DD
#95F9C6
#60F6A9
#2df38e
#0DE878
#0BC164
#099A50
#0B6F3C
#074626
Base = 500Lightest = 50 · #F2FDF7Darkest = 950 · #074626
:root {
  --brand-50: #F2FDF7;
  --brand-100: #E5FBEF;
  --brand-200: #C4F8DD;
  --brand-300: #95F9C6;
  --brand-400: #60F6A9;
  --brand-500: #2df38e;
  --brand-600: #0DE878;
  --brand-700: #0BC164;
  --brand-800: #099A50;
  --brand-900: #0B6F3C;
  --brand-950: #074626;
  --brand: #2df38e;
  --brand-ink: #000000;
}

Colors that work with #2df38e

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#F4FAF7
Tinted page background
Border#C0EDD6
Hairlines and dividers
Muted text#4B9B72
Captions on the surface
Accent#F729C6
Second voice, not a rival
Dark variant#07793F
Hover, pressed, headers
Light variant#E7FEF2
Selected rows, tints
Dark surface#14241C
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 #2df38e

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#F32D92
Analogous left#2FF32D
Analogous right#2DF3F1
Split-complement 1#F12DF3
Split-complement 2#F32D2F
Triadic 1#8E2DF3
Triadic 2#F38E2D
Tetradic#2D2FF3

RGB percentages

Red17.6%
Green95.3%
Blue55.7%

CMYK percentages

Cyan81.5%
Magenta0.0%
Yellow41.6%
Key (black)4.7%

Color previews

#2df38e text on a black background

contrast 14.32:1

Card sample

#2df38e text on a white background

contrast 1.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2df38e

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.

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

#2df38e, answered

What color is #2df38e?

#2df38e is a balanced electric green, closest to Medium Spring Green (ΔE2000 2.1). It sits at 149° on the hue wheel with 89% saturation and 57% lightness, which reads as cool.

What is the RGB value of #2df38e?

rgb(45, 243, 142) — 45 red, 243 green and 142 blue out of 255, or 17.6% / 95.3% / 55.7% by channel.

Is #2df38e a light or a dark color?

It is a light color. Relative luminance is 0.6661 and perceived brightness is 76%, so black text on it reaches 14.32:1.

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

Black. It scores 14.32:1 against #2df38e, versus 1.47:1 for white — AAA at any size.

What is the complementary color of #2df38e?

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

What colors go well with #2df38e?

For interface work: #F4FAF7 as the surface, #C0EDD6 for borders, #4B9B72 for secondary text, #F729C6 as an accent and #07793F for hover and pressed states. For a palette, the analogous pair #2FF32D and #2DF3F1 stays calm, while #F32D92 is the loudest partner.

What is #2df38e in CMYK for printing?

cmyk(82%, 0%, 42%, 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 #2df38e warm or cool?

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

Work with #2df38e in the Color Lab