Skip to content

#08ab2f

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

RGB
8, 171, 47
HSL
134°, 91%, 35%
CMYK
95, 0, 73, 33
Luminance
0.2938

At a glance

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

Hex
#08ab2f
Hue
134°
green
Saturation
91%
electric
Lightness
35%
dark
Brightness
67%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2938
WCAG relative
Temperature
Cool
69/100 cool
Color family
Green
Tone
Electric
Best ink
Black
6.88:1
Closest name
Medium Sea Green
ΔE2000 9.5
Where it sits
Hue134° of 360°
Saturation91%
Lightness35%
Temperature
Warm ← → Cool69% 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#08ab2f
RGBrgb(8, 171, 47)
HSLhsl(134, 91%, 35%)
CMYKcmyk(95%, 0%, 73%, 33%)
LABlab(61.1 -61.1 50.8)
LCHlch(61.1 79.5 140.3)
OKLCHoklch(0.645 0.201 144.9)
Decimal568111
Display P3color(display-p3 0.031 0.671 0.184)

Copy-ready code

/* CSS */
color: #08ab2f;
background-color: #08ab2f;
/* Tailwind (arbitrary) */
class="text-[#08ab2f] bg-[#08ab2f]"
/* SCSS */
$brand: #08ab2f;
/* SwiftUI */
Color(red: 0.031, green: 0.671, blue: 0.184)
/* Android */
Color.parseColor("#08ab2f")
/* Flutter */
Color(0xFF08AB2F)
/* Python / OpenCV (BGR) */
(47, 171, 8)

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 #08ab2f · 6.88:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.05:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.88:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #08ab2f as text scores 3.05:1 on white and 6.88:1 on black.

Accessibility — WCAG contrast

Aa
#08ab2f on white: 3.05:1
AA ✗ fail · AA-large · AAA
Aa
#08ab2f on black: 6.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #AE9A1A
deuteranopia · #9F8F3C
tritanopia · #00A693

Color scale — 50 to 950

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

#F2FDF4
#E5FBEA
#C3F9D0
#94FAAC
#5EF883
#29F55A
#0BEA40
#09C336
#08ab2f
#0A7023
#064616
Base = 800Lightest = 50 · #F2FDF4Darkest = 950 · #064616
:root {
  --brand-50: #F2FDF4;
  --brand-100: #E5FBEA;
  --brand-200: #C3F9D0;
  --brand-300: #94FAAC;
  --brand-400: #5EF883;
  --brand-500: #29F55A;
  --brand-600: #0BEA40;
  --brand-700: #09C336;
  --brand-800: #08ab2f;
  --brand-900: #0A7023;
  --brand-950: #064616;
  --brand: #08ab2f;
  --brand-ink: #000000;
}

Colors that work with #08ab2f

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#F4FAF6
Tinted page background
Border#C0EDCB
Hairlines and dividers
Muted text#4B9B5E
Captions on the surface
Accent#AD04AF
Second voice, not a rival
Dark variant#067A22
Hover, pressed, headers
Light variant#E7FEEC
Selected rows, tints
Dark surface#142418
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 #08ab2f

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • 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
  • Small text on white — under 4.5:1
  • 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#AB0884
Analogous left#32AB08
Analogous right#08AB81
Split-complement 1#8108AB
Split-complement 2#AB0832
Triadic 1#2F08AB
Triadic 2#AB2F08
Tetradic#0832AB

RGB percentages

Red3.1%
Green67.1%
Blue18.4%

CMYK percentages

Cyan95.3%
Magenta0.0%
Yellow72.5%
Key (black)32.9%

Color previews

#08ab2f text on a black background

contrast 6.88:1

Card sample

#08ab2f text on a white background

contrast 3.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #08ab2f;
Background color
Panel with #08ab2f background
background-color: #08ab2f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(8, 171, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 171, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #08ab2f;
background: linear-gradient(135deg, #08ab2f, #08AB9C);

Monochromatic scale

Palettes built from #08ab2f

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.

#08ab2f 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.

#08ab2f, answered

What color is #08ab2f?

#08ab2f is a dark electric green, closest to Medium Sea Green (ΔE2000 9.5). It sits at 134° on the hue wheel with 91% saturation and 35% lightness, which reads as cool.

What is the RGB value of #08ab2f?

rgb(8, 171, 47) — 8 red, 171 green and 47 blue out of 255, or 3.1% / 67.1% / 18.4% by channel.

Is #08ab2f a light or a dark color?

It is a mid-tone. Relative luminance is 0.2938 and perceived brightness is 52%, so black text on it reaches 6.88:1.

Should I use black or white text on #08ab2f?

Black. It scores 6.88:1 against #08ab2f, versus 3.05:1 for white — AA at any size.

What is the complementary color of #08ab2f?

#AB0884 sits directly opposite on the wheel. Softer options are the split-complements #8108AB and #AB0832, which give the same contrast with far less vibration.

What colors go well with #08ab2f?

For interface work: #F4FAF6 as the surface, #C0EDCB for borders, #4B9B5E for secondary text, #AD04AF as an accent and #067A22 for hover and pressed states. For a palette, the analogous pair #32AB08 and #08AB81 stays calm, while #AB0884 is the loudest partner.

What is #08ab2f in CMYK for printing?

cmyk(95%, 0%, 73%, 33%). 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 #08ab2f warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1DAB08; nudged cooler, #06AD6B.

Work with #08ab2f in the Color Lab