Skip to content

#42a310

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

RGB
66, 163, 16
HSL
100°, 82%, 35%
CMYK
60, 0, 90, 36
Luminance
0.2739

At a glance

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

Hex
#42a310
Hue
100°
green
Saturation
82%
electric
Lightness
35%
dark
Brightness
64%
HSV value
Perceived
51%
weighted brightness
Luminance
0.2739
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Green
Tone
Electric
Best ink
Black
6.48:1
Closest name
Olive Drab
ΔE2000 9.2
Where it sits
Hue100° of 360°
Saturation82%
Lightness35%
Temperature
Warm ← → Cool54% 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#42a310
RGBrgb(66, 163, 16)
HSLhsl(100, 82%, 35%)
CMYKcmyk(60%, 0%, 90%, 36%)
LABlab(59.3 -51.9 58.4)
LCHlch(59.3 78.2 131.6)
OKLCHoklch(0.632 0.192 138.5)
Decimal4367120
Display P3color(display-p3 0.259 0.639 0.063)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#42a310 on white: 3.24:1
AA ✗ fail · AA-large · AAA
Aa
#42a310 on black: 6.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A89400
deuteranopia · #9C8C27
tritanopia · #389D8A

Color scale — 50 to 950

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

#F6FCF2
#EDFAE6
#D6F6C6
#B8F599
#95F066
#71EB33
#5ADF16
#4BBA12
#42a310
#2E6B0F
#1D4309
Base = 800Lightest = 50 · #F6FCF2Darkest = 950 · #1D4309
:root {
  --brand-50: #F6FCF2;
  --brand-100: #EDFAE6;
  --brand-200: #D6F6C6;
  --brand-300: #B8F599;
  --brand-400: #95F066;
  --brand-500: #71EB33;
  --brand-600: #5ADF16;
  --brand-700: #4BBA12;
  --brand-800: #42a310;
  --brand-900: #2E6B0F;
  --brand-950: #1D4309;
  --brand: #42a310;
  --brand-ink: #000000;
}

Colors that work with #42a310

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#F6FAF4
Tinted page background
Border#CFEDC0
Hairlines and dividers
Muted text#669B4B
Captions on the surface
Accent#4C0CA7
Second voice, not a rival
Dark variant#2F740B
Hover, pressed, headers
Light variant#EFFDE8
Selected rows, tints
Dark surface#192414
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 #42a310

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#7110A3
Analogous left#8BA310
Analogous right#10A328
Split-complement 1#2810A3
Split-complement 2#A3108B
Triadic 1#1042A3
Triadic 2#A31042
Tetradic#108BA3

RGB percentages

Red25.9%
Green63.9%
Blue6.3%

CMYK percentages

Cyan59.5%
Magenta0.0%
Yellow90.2%
Key (black)36.1%

Color previews

#42a310 text on a black background

contrast 6.48:1

Card sample

#42a310 text on a white background

contrast 3.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #42a310

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.

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

#42a310, answered

What color is #42a310?

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

What is the RGB value of #42a310?

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

Is #42a310 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2739 and perceived brightness is 51%, so black text on it reaches 6.48:1.

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

Black. It scores 6.48:1 against #42a310, versus 3.24:1 for white — AA at any size.

What is the complementary color of #42a310?

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

What colors go well with #42a310?

For interface work: #F6FAF4 as the surface, #CFEDC0 for borders, #669B4B for secondary text, #4C0CA7 as an accent and #2F740B for hover and pressed states. For a palette, the analogous pair #8BA310 and #10A328 stays calm, while #7110A3 is the loudest partner.

What is #42a310 in CMYK for printing?

cmyk(60%, 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 #42a310 warm or cool?

Neutral — it scores 54 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #78A310; nudged cooler, #0EA512.

Work with #42a310 in the Color Lab