Skip to content

#acb112

a dark, electric yellow · warm · closest name: Dark Khaki

RGB
172, 177, 18
HSL
62°, 82%, 38%
CMYK
3, 0, 90, 31
Luminance
0.4026

At a glance

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

Hex
#acb112
Hue
62°
yellow
Saturation
82%
electric
Lightness
38%
dark
Brightness
69%
HSV value
Perceived
65%
weighted brightness
Luminance
0.4026
WCAG relative
Temperature
Warm
27/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
9.05:1
Closest name
Dark Khaki
ΔE2000 9.4
Where it sits
Hue62° of 360°
Saturation82%
Lightness38%
Temperature
Warm ← → Cool27% 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#acb112
RGBrgb(172, 177, 18)
HSLhsl(62, 82%, 38%)
CMYKcmyk(3%, 0%, 90%, 31%)
LABlab(69.7 -18.3 69.1)
LCHlch(69.7 71.5 104.9)
OKLCHoklch(0.732 0.158 111.8)
Decimal11317522
Display P3color(display-p3 0.675 0.694 0.071)

Copy-ready code

/* CSS */
color: #acb112;
background-color: #acb112;
/* Tailwind (arbitrary) */
class="text-[#acb112] bg-[#acb112]"
/* SCSS */
$brand: #acb112;
/* SwiftUI */
Color(red: 0.675, green: 0.694, blue: 0.071)
/* Android */
Color.parseColor("#acb112")
/* Flutter */
Color(0xFFACB112)
/* Python / OpenCV (BGR) */
(18, 177, 172)

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

Accessibility — WCAG contrast

Aa
#acb112 on white: 2.32:1
AA ✗ fail · AA-large · AAA
Aa
#acb112 on black: 9.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C0A800
deuteranopia · #C0AC27
tritanopia · #B9A597

Color scale — 50 to 950

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

#FCFCF2
#F9F9E6
#F4F6C6
#F2F599
#EBEF66
#E4EA33
#D8DE17
#acb112
#90940F
#686B0F
#41430A
Base = 700Lightest = 50 · #FCFCF2Darkest = 950 · #41430A
:root {
  --brand-50: #FCFCF2;
  --brand-100: #F9F9E6;
  --brand-200: #F4F6C6;
  --brand-300: #F2F599;
  --brand-400: #EBEF66;
  --brand-500: #E4EA33;
  --brand-600: #D8DE17;
  --brand-700: #acb112;
  --brand-800: #90940F;
  --brand-900: #686B0F;
  --brand-950: #41430A;
  --brand: #acb112;
  --brand-ink: #000000;
}

Colors that work with #acb112

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#FAFAF4
Tinted page background
Border#EBEDC0
Hairlines and dividers
Muted text#989B4B
Captions on the surface
Accent#0E32B5
Second voice, not a rival
Dark variant#70740C
Hover, pressed, headers
Light variant#FCFDE8
Selected rows, tints
Dark surface#242414
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 #acb112

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
  • Headers, footers and dark-mode surfaces
  • 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
  • Black text placed on it
  • 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#1712B1
Analogous left#B16612
Analogous right#5CB112
Split-complement 1#125CB1
Split-complement 2#6612B1
Triadic 1#12ACB1
Triadic 2#B112AC
Tetradic#12B166

RGB percentages

Red67.5%
Green69.4%
Blue7.1%

CMYK percentages

Cyan2.8%
Magenta0.0%
Yellow89.8%
Key (black)30.6%

Color previews

#acb112 text on a black background

contrast 9.05:1

Card sample

#acb112 text on a white background

contrast 2.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(172, 177, 18, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 177, 18, 0.45);
Border & gradient
Gradient panel
border: 3px solid #acb112;
background: linear-gradient(135deg, #acb112, #42B112);

Monochromatic scale

Palettes built from #acb112

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.

#acb112 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#acb112, answered

What color is #acb112?

#acb112 is a dark electric yellow, closest to Dark Khaki (ΔE2000 9.4). It sits at 62° on the hue wheel with 82% saturation and 38% lightness, which reads as warm.

What is the RGB value of #acb112?

rgb(172, 177, 18) — 172 red, 177 green and 18 blue out of 255, or 67.5% / 69.4% / 7.1% by channel.

Is #acb112 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4026 and perceived brightness is 65%, so black text on it reaches 9.05:1.

Should I use black or white text on #acb112?

Black. It scores 9.05:1 against #acb112, versus 2.32:1 for white — AAA at any size.

What is the complementary color of #acb112?

#1712B1 sits directly opposite on the wheel. Softer options are the split-complements #125CB1 and #6612B1, which give the same contrast with far less vibration.

What colors go well with #acb112?

For interface work: #FAFAF4 as the surface, #EBEDC0 for borders, #989B4B for secondary text, #0E32B5 as an accent and #70740C for hover and pressed states. For a palette, the analogous pair #B16612 and #5CB112 stays calm, while #1712B1 is the loudest partner.

What is #acb112 in CMYK for printing?

cmyk(3%, 0%, 90%, 31%). 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 #acb112 warm or cool?

Warm — it scores 27 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B17C12; nudged cooler, #72B310.

Work with #acb112 in the Color Lab