Skip to content

#02c97f

a dark, electric green · cool · closest name: Medium Sea Green

RGB
2, 201, 127
HSL
158°, 98%, 40%
CMYK
99, 0, 37, 21
Luminance
0.4332

At a glance

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

Hex
#02c97f
Hue
158°
green
Saturation
98%
electric
Lightness
40%
dark
Brightness
79%
HSV value
Perceived
63%
weighted brightness
Luminance
0.4332
WCAG relative
Temperature
Cool
78/100 cool
Color family
Green
Tone
Electric
Best ink
Black
9.66:1
Closest name
Medium Sea Green
ΔE2000 6.1
Where it sits
Hue158° of 360°
Saturation98%
Lightness40%
Temperature
Warm ← → Cool78% 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#02c97f
RGBrgb(2, 201, 127)
HSLhsl(158, 98%, 40%)
CMYKcmyk(99%, 0%, 37%, 21%)
LABlab(71.8 -59.1 25.5)
LCHlch(71.8 64.3 156.7)
OKLCHoklch(0.737 0.172 158.1)
Decimal182655
Display P3color(display-p3 0.008 0.788 0.498)

Copy-ready code

/* CSS */
color: #02c97f;
background-color: #02c97f;
/* Tailwind (arbitrary) */
class="text-[#02c97f] bg-[#02c97f]"
/* SCSS */
$brand: #02c97f;
/* SwiftUI */
Color(red: 0.008, green: 0.788, blue: 0.498)
/* Android */
Color.parseColor("#02c97f")
/* Flutter */
Color(0xFF02C97F)
/* Python / OpenCV (BGR) */
(127, 201, 2)

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

Accessibility — WCAG contrast

Aa
#02c97f on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#02c97f on black: 9.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C7B87A
deuteranopia · #B4AA84
tritanopia · #00C8B6

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #02c97f is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F1FDF9
#E3FCF3
#C1FBE5
#90FED5
#58FDC0
#21FDAB
#02F299
#02c97f
#02A266
#06744B
#04492F
Base = 700Lightest = 50 · #F1FDF9Darkest = 950 · #04492F
:root {
  --brand-50: #F1FDF9;
  --brand-100: #E3FCF3;
  --brand-200: #C1FBE5;
  --brand-300: #90FED5;
  --brand-400: #58FDC0;
  --brand-500: #21FDAB;
  --brand-600: #02F299;
  --brand-700: #02c97f;
  --brand-800: #02A266;
  --brand-900: #06744B;
  --brand-950: #04492F;
  --brand: #02c97f;
  --brand-ink: #000000;
}

Colors that work with #02c97f

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#C0EDDC
Hairlines and dividers
Muted text#4B9B7D
Captions on the surface
Accent#CB007E
Second voice, not a rival
Dark variant#017E50
Hover, pressed, headers
Light variant#E6FFF5
Selected rows, tints
Dark surface#14241E
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 #02c97f

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
  • Headers, footers and dark-mode surfaces
  • 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
  • Black text placed on it
  • 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#C9024C
Analogous left#02C91C
Analogous right#02AFC9
Split-complement 1#C902AF
Split-complement 2#C91C02
Triadic 1#7F02C9
Triadic 2#C97F02
Tetradic#1C02C9

RGB percentages

Red0.8%
Green78.8%
Blue49.8%

CMYK percentages

Cyan99.0%
Magenta0.0%
Yellow36.8%
Key (black)21.2%

Color previews

#02c97f text on a black background

contrast 9.66:1

Card sample

#02c97f text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #02c97f;
Background color
Panel with #02c97f background
background-color: #02c97f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(2, 201, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 201, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #02c97f;
background: linear-gradient(135deg, #02c97f, #028EC9);

Monochromatic scale

Palettes built from #02c97f

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.

#02c97f 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.

#02c97f, answered

What color is #02c97f?

#02c97f is a dark electric green, closest to Medium Sea Green (ΔE2000 6.1). It sits at 158° on the hue wheel with 98% saturation and 40% lightness, which reads as cool.

What is the RGB value of #02c97f?

rgb(2, 201, 127) — 2 red, 201 green and 127 blue out of 255, or 0.8% / 78.8% / 49.8% by channel.

Is #02c97f a light or a dark color?

It is a mid-tone. Relative luminance is 0.4332 and perceived brightness is 63%, so black text on it reaches 9.66:1.

Should I use black or white text on #02c97f?

Black. It scores 9.66:1 against #02c97f, versus 2.17:1 for white — AAA at any size.

What is the complementary color of #02c97f?

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

What colors go well with #02c97f?

For interface work: #F4FAF8 as the surface, #C0EDDC for borders, #4B9B7D for secondary text, #CB007E as an accent and #017E50 for hover and pressed states. For a palette, the analogous pair #02C91C and #02AFC9 stays calm, while #C9024C is the loudest partner.

What is #02c97f in CMYK for printing?

cmyk(99%, 0%, 37%, 21%). 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 #02c97f warm or cool?

Cool — it scores 78 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #02C936; nudged cooler, #00CBCA.

Work with #02c97f in the Color Lab