Skip to content

#0cda4f

a balanced, electric green · cool · closest name: Lime Green

RGB
12, 218, 79
HSL
140°, 90%, 45%
CMYK
95, 0, 64, 15
Luminance
0.5079

At a glance

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

Hex
#0cda4f
Hue
140°
green
Saturation
90%
electric
Lightness
45%
balanced
Brightness
85%
HSV value
Perceived
66%
weighted brightness
Luminance
0.5079
WCAG relative
Temperature
Cool
71/100 cool
Color family
Green
Tone
Electric
Best ink
Black
11.16:1
Closest name
Lime Green
ΔE2000 4.1
Where it sits
Hue140° of 360°
Saturation90%
Lightness45%
Temperature
Warm ← → Cool71% 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#0cda4f
RGBrgb(12, 218, 79)
HSLhsl(140, 90%, 45%)
CMYKcmyk(95%, 0%, 64%, 15%)
LABlab(76.5 -71.7 54.5)
LCHlch(76.5 90.1 142.8)
OKLCHoklch(0.774 0.231 146.6)
Decimal842319
Display P3color(display-p3 0.047 0.855 0.310)

Copy-ready code

/* CSS */
color: #0cda4f;
background-color: #0cda4f;
/* Tailwind (arbitrary) */
class="text-[#0cda4f] bg-[#0cda4f]"
/* SCSS */
$brand: #0cda4f;
/* SwiftUI */
Color(red: 0.047, green: 0.855, blue: 0.310)
/* Android */
Color.parseColor("#0cda4f")
/* Flutter */
Color(0xFF0CDA4F)
/* Python / OpenCV (BGR) */
(79, 218, 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 #0cda4f · 11.16:1
Use #000000AAA at every size.
Aa
White text · 1.88:1
AA fail · AA large fail · AAA fail
Aa
Black text · 11.16:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #0cda4f as text scores 1.88:1 on white and 11.16:1 on black.

Accessibility — WCAG contrast

Aa
#0cda4f on white: 1.88:1
AA ✗ fail · AA-large · AAA
Aa
#0cda4f on black: 11.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DDC53E
deuteranopia · #C9B75C
tritanopia · #00D5BD

Color scale — 50 to 950

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

#F2FDF5
#E5FBEC
#C3F8D5
#95F9B5
#5FF690
#2AF36C
#0cda4f
#0BC146
#089B38
#0B702C
#07461B
Base = 600Lightest = 50 · #F2FDF5Darkest = 950 · #07461B
:root {
  --brand-50: #F2FDF5;
  --brand-100: #E5FBEC;
  --brand-200: #C3F8D5;
  --brand-300: #95F9B5;
  --brand-400: #5FF690;
  --brand-500: #2AF36C;
  --brand-600: #0cda4f;
  --brand-700: #0BC146;
  --brand-800: #089B38;
  --brand-900: #0B702C;
  --brand-950: #07461B;
  --brand: #0cda4f;
  --brand-ink: #000000;
}

Colors that work with #0cda4f

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#C0EDCE
Hairlines and dividers
Muted text#4B9B65
Captions on the surface
Accent#DF07CF
Second voice, not a rival
Dark variant#07792C
Hover, pressed, headers
Light variant#E7FEEE
Selected rows, tints
Dark surface#142419
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 #0cda4f

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#DA0C97
Analogous left#30DA0C
Analogous right#0CDAB6
Split-complement 1#B60CDA
Split-complement 2#DA0C30
Triadic 1#4F0CDA
Triadic 2#DA4F0C
Tetradic#0C30DA

RGB percentages

Red4.7%
Green85.5%
Blue31.0%

CMYK percentages

Cyan94.5%
Magenta0.0%
Yellow63.8%
Key (black)14.5%

Color previews

#0cda4f text on a black background

contrast 11.16:1

Card sample

#0cda4f text on a white background

contrast 1.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cda4f

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.

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

#0cda4f, answered

What color is #0cda4f?

#0cda4f is a balanced electric green, closest to Lime Green (ΔE2000 4.1). It sits at 140° on the hue wheel with 90% saturation and 45% lightness, which reads as cool.

What is the RGB value of #0cda4f?

rgb(12, 218, 79) — 12 red, 218 green and 79 blue out of 255, or 4.7% / 85.5% / 31% by channel.

Is #0cda4f a light or a dark color?

It is a light color. Relative luminance is 0.5079 and perceived brightness is 66%, so black text on it reaches 11.16:1.

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

Black. It scores 11.16:1 against #0cda4f, versus 1.88:1 for white — AAA at any size.

What is the complementary color of #0cda4f?

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

What colors go well with #0cda4f?

For interface work: #F4FAF6 as the surface, #C0EDCE for borders, #4B9B65 for secondary text, #DF07CF as an accent and #07792C for hover and pressed states. For a palette, the analogous pair #30DA0C and #0CDAB6 stays calm, while #DA0C97 is the loudest partner.

What is #0cda4f in CMYK for printing?

cmyk(95%, 0%, 64%, 15%). 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 #0cda4f warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #15DA0C; nudged cooler, #0ADC9B.

Work with #0cda4f in the Color Lab