Skip to content

#0cab2f

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

RGB
12, 171, 47
HSL
133°, 87%, 36%
CMYK
93, 0, 73, 33
Luminance
0.2941

At a glance

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

Hex
#0cab2f
Hue
133°
green
Saturation
87%
electric
Lightness
36%
dark
Brightness
67%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2941
WCAG relative
Temperature
Cool
68/100 cool
Color family
Green
Tone
Electric
Best ink
Black
6.88:1
Closest name
Medium Sea Green
ΔE2000 9.6
Where it sits
Hue133° of 360°
Saturation87%
Lightness36%
Temperature
Warm ← → Cool68% 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#0cab2f
RGBrgb(12, 171, 47)
HSLhsl(133, 87%, 36%)
CMYKcmyk(93%, 0%, 73%, 33%)
LABlab(61.1 -60.9 50.8)
LCHlch(61.1 79.3 140.2)
OKLCHoklch(0.645 0.201 144.8)
Decimal830255
Display P3color(display-p3 0.047 0.671 0.184)

Copy-ready code

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

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 #0cab2f · 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: #0cab2f as text scores 3.05:1 on white and 6.88:1 on black.

Accessibility — WCAG contrast

Aa
#0cab2f on white: 3.05:1
AA ✗ fail · AA-large · AAA
Aa
#0cab2f 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. #0cab2f 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
#E5FAEA
#C4F7D0
#96F8AC
#62F482
#2DF058
#10E53F
#0DBF34
#0cab2f
#0C6E22
#084515
Base = 800Lightest = 50 · #F2FDF4Darkest = 950 · #084515
:root {
  --brand-50: #F2FDF4;
  --brand-100: #E5FAEA;
  --brand-200: #C4F7D0;
  --brand-300: #96F8AC;
  --brand-400: #62F482;
  --brand-500: #2DF058;
  --brand-600: #10E53F;
  --brand-700: #0DBF34;
  --brand-800: #0cab2f;
  --brand-900: #0C6E22;
  --brand-950: #084515;
  --brand: #0cab2f;
  --brand-ink: #000000;
}

Colors that work with #0cab2f

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#C0EDCA
Hairlines and dividers
Muted text#4B9B5C
Captions on the surface
Accent#AA08AF
Second voice, not a rival
Dark variant#087721
Hover, pressed, headers
Light variant#E7FDEC
Selected rows, tints
Dark surface#142417
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 #0cab2f

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#AB0C88
Analogous left#39AB0C
Analogous right#0CAB7F
Split-complement 1#7F0CAB
Split-complement 2#AB0C39
Triadic 1#2F0CAB
Triadic 2#AB2F0C
Tetradic#0C39AB

RGB percentages

Red4.7%
Green67.1%
Blue18.4%

CMYK percentages

Cyan93.0%
Magenta0.0%
Yellow72.5%
Key (black)32.9%

Color previews

#0cab2f text on a black background

contrast 6.88:1

Card sample

#0cab2f text on a white background

contrast 3.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0cab2f;
Background color
Panel with #0cab2f background
background-color: #0cab2f;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cab2f

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.

#0cab2f 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.

#0cab2f, answered

What color is #0cab2f?

#0cab2f is a dark electric green, closest to Medium Sea Green (ΔE2000 9.6). It sits at 133° on the hue wheel with 87% saturation and 36% lightness, which reads as cool.

What is the RGB value of #0cab2f?

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

Is #0cab2f a light or a dark color?

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

Should I use black or white text on #0cab2f?

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

What is the complementary color of #0cab2f?

#AB0C88 sits directly opposite on the wheel. Softer options are the split-complements #7F0CAB and #AB0C39, which give the same contrast with far less vibration.

What colors go well with #0cab2f?

For interface work: #F4FAF6 as the surface, #C0EDCA for borders, #4B9B5C for secondary text, #AA08AF as an accent and #087721 for hover and pressed states. For a palette, the analogous pair #39AB0C and #0CAB7F stays calm, while #AB0C88 is the loudest partner.

What is #0cab2f in CMYK for printing?

cmyk(93%, 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 #0cab2f warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #23AB0C; nudged cooler, #0AAD6A.

Work with #0cab2f in the Color Lab