#02af6d
a dark, electric green · cool · closest name: Medium Sea Green
At a glance
Every number on this page in one read: what #02af6d is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #02af6d |
| RGB | rgb(2, 175, 109) |
| HSL | hsl(157, 98%, 35%) |
| CMYK | cmyk(99%, 0%, 38%, 31%) |
| LAB | lab(63.2 -53.5 23.5) |
| LCH | lch(63.2 58.4 156.3) |
| OKLCH | oklch(0.664 0.156 157.8) |
| Decimal | 175981 |
| Display P3 | color(display-p3 0.008 0.686 0.427) |
Copy-ready code
/* CSS */
color: #02af6d;
background-color: #02af6d;
/* Tailwind (arbitrary) */
class="text-[#02af6d] bg-[#02af6d]"
/* SCSS */
$brand: #02af6d;
/* SwiftUI */
Color(red: 0.008, green: 0.686, blue: 0.427)
/* Android */
Color.parseColor("#02af6d")
/* Flutter */
Color(0xFF02AF6D)
/* Python / OpenCV (BGR) */
(109, 175, 2)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #02af6d is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F1FDF9;
--brand-100: #E4FCF3;
--brand-200: #C1FBE5;
--brand-300: #90FED4;
--brand-400: #59FDBE;
--brand-500: #21FCA9;
--brand-600: #03F297;
--brand-700: #02CA7E;
--brand-800: #02af6d;
--brand-900: #06744A;
--brand-950: #04492E;
--brand: #02af6d;
--brand-ink: #000000;
}Colors that work with #02af6d
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #02af6d
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #AF0244 | Directly opposite — maximum tension | |
| Analogous left | #02AF16 | Neighbour, quieter | |
| Analogous right | #029AAF | Neighbour, quieter | |
| Split-complement 1 | #AF029A | Contrast without the clash | |
| Split-complement 2 | #AF1602 | Contrast without the clash | |
| Triadic 1 | #6D02AF | Even thirds — balanced and loud | |
| Triadic 2 | #AF6D02 | Even thirds — balanced and loud | |
| Tetradic | #1602AF | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#02af6d text on a black background
contrast 7.36:1
#02af6d text on a white background
contrast 2.86:1
CSS3 live lab
The quick brown fox
color: #02af6d;
background-color: #02af6d;
Glowing headline
text-shadow: 2px 2px 8px #02af6d;
Soft neon halo
text-shadow: 0 0 14px rgba(2, 175, 109, 0.45);
box-shadow: 0 12px 32px -8px rgba(2, 175, 109, 0.45);
border: 3px solid #02af6d; background: linear-gradient(135deg, #02af6d, #027EAF);
Monochromatic scale
Palettes built from #02af6d
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.
Closest color with a full write-up: Jade (#00a86b) — ΔE2000 2.2 away, with its history, psychology and brand usage.
#02af6d in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#02af6d, answered
What color is #02af6d?
#02af6d is a dark electric green, closest to Medium Sea Green (ΔE2000 2.6). It sits at 157° on the hue wheel with 98% saturation and 35% lightness, which reads as cool.
What is the RGB value of #02af6d?
rgb(2, 175, 109) — 2 red, 175 green and 109 blue out of 255, or 0.8% / 68.6% / 42.7% by channel.
Is #02af6d a light or a dark color?
It is a mid-tone. Relative luminance is 0.3178 and perceived brightness is 55%, so black text on it reaches 7.36:1.
Should I use black or white text on #02af6d?
Black. It scores 7.36:1 against #02af6d, versus 2.86:1 for white — AAA at any size.
What is the complementary color of #02af6d?
#AF0244 sits directly opposite on the wheel. Softer options are the split-complements #AF029A and #AF1602, which give the same contrast with far less vibration.
What colors go well with #02af6d?
For interface work: #F4FAF8 as the surface, #C0EDDC for borders, #4B9B7C for secondary text, #B10070 as an accent and #017E4E for hover and pressed states. For a palette, the analogous pair #02AF16 and #029AAF stays calm, while #AF0244 is the loudest partner.
What is #02af6d in CMYK for printing?
cmyk(99%, 0%, 38%, 31%). 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 #02af6d 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 #02AF2E; nudged cooler, #00B1AE.