Skip to content

#51a310

a dark, electric green · neutral · closest name: Olive Drab

RGB
81, 163, 16
HSL
94°, 82%, 35%
CMYK
50, 0, 90, 36
Luminance
0.2798

At a glance

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

Hex
#51a310
Hue
94°
green
Saturation
82%
electric
Lightness
35%
dark
Brightness
64%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2798
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Green
Tone
Electric
Best ink
Black
6.60:1
Closest name
Olive Drab
ΔE2000 8.3
Where it sits
Hue94° of 360°
Saturation82%
Lightness35%
Temperature
Warm ← → Cool51% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#51a310
RGBrgb(81, 163, 16)
HSLhsl(94, 82%, 35%)
CMYKcmyk(50%, 0%, 90%, 36%)
LABlab(59.9 -47.6 59.1)
LCHlch(59.9 75.9 128.9)
OKLCHoklch(0.638 0.185 136.0)
Decimal5350160
Display P3color(display-p3 0.318 0.639 0.063)

Copy-ready code

/* CSS */
color: #51a310;
background-color: #51a310;
/* Tailwind (arbitrary) */
class="text-[#51a310] bg-[#51a310]"
/* SCSS */
$brand: #51a310;
/* SwiftUI */
Color(red: 0.318, green: 0.639, blue: 0.063)
/* Android */
Color.parseColor("#51a310")
/* Flutter */
Color(0xFF51A310)
/* Python / OpenCV (BGR) */
(16, 163, 81)

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

Accessibility — WCAG contrast

Aa
#51a310 on white: 3.18:1
AA ✗ fail · AA-large · AAA
Aa
#51a310 on black: 6.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A99400
deuteranopia · #9E8E26
tritanopia · #4D9D8A

Color scale — 50 to 950

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

#F7FCF2
#EFFAE6
#DBF6C6
#C2F599
#A3F066
#84EB33
#6FDF16
#5CBA12
#51a310
#386B0F
#234309
Base = 800Lightest = 50 · #F7FCF2Darkest = 950 · #234309
:root {
  --brand-50: #F7FCF2;
  --brand-100: #EFFAE6;
  --brand-200: #DBF6C6;
  --brand-300: #C2F599;
  --brand-400: #A3F066;
  --brand-500: #84EB33;
  --brand-600: #6FDF16;
  --brand-700: #5CBA12;
  --brand-800: #51a310;
  --brand-900: #386B0F;
  --brand-950: #234309;
  --brand: #51a310;
  --brand-ink: #000000;
}

Colors that work with #51a310

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#F7FAF4
Tinted page background
Border#D4EDC0
Hairlines and dividers
Muted text#6E9B4B
Captions on the surface
Accent#3C0CA7
Second voice, not a rival
Dark variant#3A740B
Hover, pressed, headers
Light variant#F1FDE8
Selected rows, tints
Dark surface#1B2414
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 #51a310

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#6210A3
Analogous left#9AA310
Analogous right#10A319
Split-complement 1#1910A3
Split-complement 2#A3109A
Triadic 1#1051A3
Triadic 2#A31051
Tetradic#109AA3

RGB percentages

Red31.8%
Green63.9%
Blue6.3%

CMYK percentages

Cyan50.3%
Magenta0.0%
Yellow90.2%
Key (black)36.1%

Color previews

#51a310 text on a black background

contrast 6.60:1

Card sample

#51a310 text on a white background

contrast 3.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #51a310;
Background color
Panel with #51a310 background
background-color: #51a310;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #51a310;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(81, 163, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 163, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #51a310;
background: linear-gradient(135deg, #51a310, #10A331);

Monochromatic scale

Palettes built from #51a310

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.

#51a310 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.

#51a310, answered

What color is #51a310?

#51a310 is a dark electric green, closest to Olive Drab (ΔE2000 8.3). It sits at 94° on the hue wheel with 82% saturation and 35% lightness, which reads as neutral.

What is the RGB value of #51a310?

rgb(81, 163, 16) — 81 red, 163 green and 16 blue out of 255, or 31.8% / 63.9% / 6.3% by channel.

Is #51a310 a light or a dark color?

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

Should I use black or white text on #51a310?

Black. It scores 6.60:1 against #51a310, versus 3.18:1 for white — AA at any size.

What is the complementary color of #51a310?

#6210A3 sits directly opposite on the wheel. Softer options are the split-complements #1910A3 and #A3109A, which give the same contrast with far less vibration.

What colors go well with #51a310?

For interface work: #F7FAF4 as the surface, #D4EDC0 for borders, #6E9B4B for secondary text, #3C0CA7 as an accent and #3A740B for hover and pressed states. For a palette, the analogous pair #9AA310 and #10A319 stays calm, while #6210A3 is the loudest partner.

What is #51a310 in CMYK for printing?

cmyk(50%, 0%, 90%, 36%). 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 #51a310 warm or cool?

Neutral — it scores 51 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #87A310; nudged cooler, #1AA50E.

Work with #51a310 in the Color Lab