Skip to content

#afbc09

a dark, electric yellow · warm · closest name: Yellow Green

RGB
175, 188, 9
HSL
64°, 91%, 39%
CMYK
7, 0, 95, 26
Luminance
0.4510

At a glance

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

Hex
#afbc09
Hue
64°
yellow
Saturation
91%
electric
Lightness
39%
dark
Brightness
74%
HSV value
Perceived
68%
weighted brightness
Luminance
0.4510
WCAG relative
Temperature
Warm
29/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
10.02:1
Closest name
Yellow Green
ΔE2000 8.3
Where it sits
Hue64° of 360°
Saturation91%
Lightness39%
Temperature
Warm ← → Cool29% 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#afbc09
RGBrgb(175, 188, 9)
HSLhsl(64, 91%, 39%)
CMYKcmyk(7%, 0%, 95%, 26%)
LABlab(73.0 -22.6 72.9)
LCHlch(73.0 76.4 107.2)
OKLCHoklch(0.759 0.170 114.7)
Decimal11516937
Display P3color(display-p3 0.686 0.737 0.035)

Copy-ready code

/* CSS */
color: #afbc09;
background-color: #afbc09;
/* Tailwind (arbitrary) */
class="text-[#afbc09] bg-[#afbc09]"
/* SCSS */
$brand: #afbc09;
/* SwiftUI */
Color(red: 0.686, green: 0.737, blue: 0.035)
/* Android */
Color.parseColor("#afbc09")
/* Flutter */
Color(0xFFAFBC09)
/* Python / OpenCV (BGR) */
(9, 188, 175)

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

Accessibility — WCAG contrast

Aa
#afbc09 on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#afbc09 on black: 10.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CBB200
deuteranopia · #CAB426
tritanopia · #BBB0A0

Color scale — 50 to 950

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

#FCFDF2
#F9FBE5
#F5F9C3
#F2FA94
#ECF75E
#E6F529
#D9EA0B
#afbc09
#919C07
#69700A
#424606
Base = 700Lightest = 50 · #FCFDF2Darkest = 950 · #424606
:root {
  --brand-50: #FCFDF2;
  --brand-100: #F9FBE5;
  --brand-200: #F5F9C3;
  --brand-300: #F2FA94;
  --brand-400: #ECF75E;
  --brand-500: #E6F529;
  --brand-600: #D9EA0B;
  --brand-700: #afbc09;
  --brand-800: #919C07;
  --brand-900: #69700A;
  --brand-950: #424606;
  --brand: #afbc09;
  --brand-ink: #000000;
}

Colors that work with #afbc09

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#E9EDC0
Hairlines and dividers
Muted text#959B4B
Captions on the surface
Accent#0526C0
Second voice, not a rival
Dark variant#717A06
Hover, pressed, headers
Light variant#FCFEE7
Selected rows, tints
Dark surface#232414
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 #afbc09

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#1609BC
Analogous left#BC7009
Analogous right#55BC09
Split-complement 1#0955BC
Split-complement 2#7009BC
Triadic 1#09AFBC
Triadic 2#BC09AF
Tetradic#09BC70

RGB percentages

Red68.6%
Green73.7%
Blue3.5%

CMYK percentages

Cyan6.9%
Magenta0.0%
Yellow95.2%
Key (black)26.3%

Color previews

#afbc09 text on a black background

contrast 10.02:1

Card sample

#afbc09 text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 188, 9, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 188, 9, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afbc09;
background: linear-gradient(135deg, #afbc09, #37BC09);

Monochromatic scale

Palettes built from #afbc09

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.

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

#afbc09, answered

What color is #afbc09?

#afbc09 is a dark electric yellow, closest to Yellow Green (ΔE2000 8.3). It sits at 64° on the hue wheel with 91% saturation and 39% lightness, which reads as warm.

What is the RGB value of #afbc09?

rgb(175, 188, 9) — 175 red, 188 green and 9 blue out of 255, or 68.6% / 73.7% / 3.5% by channel.

Is #afbc09 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4510 and perceived brightness is 68%, so black text on it reaches 10.02:1.

Should I use black or white text on #afbc09?

Black. It scores 10.02:1 against #afbc09, versus 2.10:1 for white — AAA at any size.

What is the complementary color of #afbc09?

#1609BC sits directly opposite on the wheel. Softer options are the split-complements #0955BC and #7009BC, which give the same contrast with far less vibration.

What colors go well with #afbc09?

For interface work: #FAFAF4 as the surface, #E9EDC0 for borders, #959B4B for secondary text, #0526C0 as an accent and #717A06 for hover and pressed states. For a palette, the analogous pair #BC7009 and #55BC09 stays calm, while #1609BC is the loudest partner.

What is #afbc09 in CMYK for printing?

cmyk(7%, 0%, 95%, 26%). 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 #afbc09 warm or cool?

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

Work with #afbc09 in the Color Lab