Skip to content

#acaf07

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

RGB
172, 175, 7
HSL
61°, 92%, 36%
CMYK
2, 0, 96, 31
Luminance
0.3945

At a glance

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

Hex
#acaf07
Hue
61°
yellow
Saturation
92%
electric
Lightness
36%
dark
Brightness
69%
HSV value
Perceived
64%
weighted brightness
Luminance
0.3945
WCAG relative
Temperature
Warm
26/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
8.89:1
Closest name
Dark Khaki
ΔE2000 9.7
Where it sits
Hue61° of 360°
Saturation92%
Lightness36%
Temperature
Warm ← → Cool26% 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#acaf07
RGBrgb(172, 175, 7)
HSLhsl(61, 92%, 36%)
CMYKcmyk(2%, 0%, 96%, 31%)
LABlab(69.1 -17.5 70.1)
LCHlch(69.1 72.3 104.0)
OKLCHoklch(0.727 0.159 111.0)
Decimal11316999
Display P3color(display-p3 0.675 0.686 0.027)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#acaf07 on white: 2.36:1
AA ✗ fail · AA-large · AAA
Aa
#acaf07 on black: 8.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BEA700
deuteranopia · #BFAA21
tritanopia · #B9A395

Color scale — 50 to 950

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

#FDFDF2
#FBFBE4
#F8F9C3
#F9FB93
#F6F95D
#F3F627
#E7EB09
#C1C408
#acaf07
#6F7109
#464706
Base = 800Lightest = 50 · #FDFDF2Darkest = 950 · #464706
:root {
  --brand-50: #FDFDF2;
  --brand-100: #FBFBE4;
  --brand-200: #F8F9C3;
  --brand-300: #F9FB93;
  --brand-400: #F6F95D;
  --brand-500: #F3F627;
  --brand-600: #E7EB09;
  --brand-700: #C1C408;
  --brand-800: #acaf07;
  --brand-900: #6F7109;
  --brand-950: #464706;
  --brand: #acaf07;
  --brand-ink: #000000;
}

Colors that work with #acaf07

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#ECEDC0
Hairlines and dividers
Muted text#999B4B
Captions on the surface
Accent#032CB3
Second voice, not a rival
Dark variant#787B05
Hover, pressed, headers
Light variant#FEFEE6
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 #acaf07

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#0A07AF
Analogous left#AF5E07
Analogous right#58AF07
Split-complement 1#0758AF
Split-complement 2#5E07AF
Triadic 1#07ACAF
Triadic 2#AF07AC
Tetradic#07AF5E

RGB percentages

Red67.5%
Green68.6%
Blue2.7%

CMYK percentages

Cyan1.7%
Magenta0.0%
Yellow96.0%
Key (black)31.4%

Color previews

#acaf07 text on a black background

contrast 8.89:1

Card sample

#acaf07 text on a white background

contrast 2.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(172, 175, 7, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 175, 7, 0.45);
Border & gradient
Gradient panel
border: 3px solid #acaf07;
background: linear-gradient(135deg, #acaf07, #3CAF07);

Monochromatic scale

Palettes built from #acaf07

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.

#acaf07 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.

#acaf07, answered

What color is #acaf07?

#acaf07 is a dark electric yellow, closest to Dark Khaki (ΔE2000 9.7). It sits at 61° on the hue wheel with 92% saturation and 36% lightness, which reads as warm.

What is the RGB value of #acaf07?

rgb(172, 175, 7) — 172 red, 175 green and 7 blue out of 255, or 67.5% / 68.6% / 2.7% by channel.

Is #acaf07 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3945 and perceived brightness is 64%, so black text on it reaches 8.89:1.

Should I use black or white text on #acaf07?

Black. It scores 8.89:1 against #acaf07, versus 2.36:1 for white — AAA at any size.

What is the complementary color of #acaf07?

#0A07AF sits directly opposite on the wheel. Softer options are the split-complements #0758AF and #5E07AF, which give the same contrast with far less vibration.

What colors go well with #acaf07?

For interface work: #FAFAF4 as the surface, #ECEDC0 for borders, #999B4B for secondary text, #032CB3 as an accent and #787B05 for hover and pressed states. For a palette, the analogous pair #AF5E07 and #58AF07 stays calm, while #0A07AF is the loudest partner.

What is #acaf07 in CMYK for printing?

cmyk(2%, 0%, 96%, 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 #acaf07 warm or cool?

Warm — it scores 26 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF7807; nudged cooler, #6FB105.

Work with #acaf07 in the Color Lab