Skip to content

#abc040

a balanced, vivid yellow · warm · closest name: Yellow Green

RGB
171, 192, 64
HSL
70°, 50%, 50%
CMYK
11, 0, 67, 25
Luminance
0.4673

At a glance

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

Hex
#abc040
Hue
70°
yellow
Saturation
50%
vivid
Lightness
50%
balanced
Brightness
75%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4673
WCAG relative
Temperature
Warm
33/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
10.35:1
Closest name
Yellow Green
ΔE2000 5.6
Where it sits
Hue70° of 360°
Saturation50%
Lightness50%
Temperature
Warm ← → Cool33% cool

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

Every format

HEX#abc040
RGBrgb(171, 192, 64)
HSLhsl(70, 50%, 50%)
CMYKcmyk(11%, 0%, 67%, 25%)
LABlab(74.0 -24.3 59.5)
LCHlch(74.0 64.3 112.3)
OKLCHoklch(0.768 0.152 118.2)
Decimal11255872
Display P3color(display-p3 0.671 0.753 0.251)

Copy-ready code

/* CSS */
color: #abc040;
background-color: #abc040;
/* Tailwind (arbitrary) */
class="text-[#abc040] bg-[#abc040]"
/* SCSS */
$brand: #abc040;
/* SwiftUI */
Color(red: 0.671, green: 0.753, blue: 0.251)
/* Android */
Color.parseColor("#abc040")
/* Flutter */
Color(0xFFABC040)
/* Python / OpenCV (BGR) */
(64, 192, 171)

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 #abc040 · 10.35:1
Use #000000AAA at every size.
Aa
White text · 2.03:1
AA fail · AA large fail · AAA fail
Aa
Black text · 10.35:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #abc040 as text scores 2.03:1 on white and 10.35:1 on black.

Accessibility — WCAG contrast

Aa
#abc040 on white: 2.03:1
AA ✗ fail · AA-large · AAA
Aa
#abc040 on black: 10.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CCB62E
deuteranopia · #CAB749
tritanopia · #B5B6A6

Color scale — 50 to 950

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

#F9FAF4
#F4F6EA
#E8EDCF
#DAE3AB
#C7D580
#B5C756
#abc040
#899933
#6D7B28
#505A21
#323815
Base = 600Lightest = 50 · #F9FAF4Darkest = 950 · #323815
:root {
  --brand-50: #F9FAF4;
  --brand-100: #F4F6EA;
  --brand-200: #E8EDCF;
  --brand-300: #DAE3AB;
  --brand-400: #C7D580;
  --brand-500: #B5C756;
  --brand-600: #abc040;
  --brand-700: #899933;
  --brand-800: #6D7B28;
  --brand-900: #505A21;
  --brand-950: #323815;
  --brand: #abc040;
  --brand-ink: #000000;
}

Colors that work with #abc040

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#F9FAF4
Tinted page background
Border#E4EBC2
Hairlines and dividers
Muted text#8E9B4B
Captions on the surface
Accent#3B47C5
Second voice, not a rival
Dark variant#556020
Hover, pressed, headers
Light variant#F7F9EC
Selected rows, tints
Dark surface#222414
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 #abc040

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
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#5540C0
Analogous left#C09540
Analogous right#6BC040
Split-complement 1#406BC0
Split-complement 2#9540C0
Triadic 1#40ABC0
Triadic 2#C040AB
Tetradic#40C095

RGB percentages

Red67.1%
Green75.3%
Blue25.1%

CMYK percentages

Cyan10.9%
Magenta0.0%
Yellow66.7%
Key (black)24.7%

Color previews

#abc040 text on a black background

contrast 10.35:1

Card sample

#abc040 text on a white background

contrast 2.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #abc040

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.

#abc040 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#abc040, answered

What color is #abc040?

#abc040 is a balanced vivid yellow, closest to Yellow Green (ΔE2000 5.6). It sits at 70° on the hue wheel with 50% saturation and 50% lightness, which reads as warm.

What is the RGB value of #abc040?

rgb(171, 192, 64) — 171 red, 192 green and 64 blue out of 255, or 67.1% / 75.3% / 25.1% by channel.

Is #abc040 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4673 and perceived brightness is 69%, so black text on it reaches 10.35:1.

Should I use black or white text on #abc040?

Black. It scores 10.35:1 against #abc040, versus 2.03:1 for white — AAA at any size.

What is the complementary color of #abc040?

#5540C0 sits directly opposite on the wheel. Softer options are the split-complements #406BC0 and #9540C0, which give the same contrast with far less vibration.

What colors go well with #abc040?

For interface work: #F9FAF4 as the surface, #E4EBC2 for borders, #8E9B4B for secondary text, #3B47C5 as an accent and #556020 for hover and pressed states. For a palette, the analogous pair #C09540 and #6BC040 stays calm, while #5540C0 is the loudest partner.

What is #abc040 in CMYK for printing?

cmyk(11%, 0%, 67%, 25%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #abc040 warm or cool?

Warm — it scores 33 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C0A640; nudged cooler, #7CC33D.

Work with #abc040 in the Color Lab