Skip to content

#afb90f

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

RGB
175, 185, 15
HSL
64°, 85%, 39%
CMYK
5, 0, 92, 28
Luminance
0.4385

At a glance

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

Hex
#afb90f
Hue
64°
yellow
Saturation
85%
electric
Lightness
39%
dark
Brightness
73%
HSV value
Perceived
67%
weighted brightness
Luminance
0.4385
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
9.77:1
Closest name
Yellow Green
ΔE2000 9
Where it sits
Hue64° of 360°
Saturation85%
Lightness39%
Temperature
Warm ← → Cool28% 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#afb90f
RGBrgb(175, 185, 15)
HSLhsl(64, 85%, 39%)
CMYKcmyk(5%, 0%, 92%, 28%)
LABlab(72.1 -21.1 71.6)
LCHlch(72.1 74.6 106.4)
OKLCHoklch(0.752 0.166 113.6)
Decimal11516175
Display P3color(display-p3 0.686 0.725 0.059)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb90f on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#afb90f on black: 9.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C8AF00
deuteranopia · #C7B227
tritanopia · #BCAD9D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afb90f 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
#F9FAE5
#F4F7C5
#F1F797
#EAF263
#E3EE2F
#D6E212
#afb90f
#8F970C
#676D0D
#414408
Base = 700Lightest = 50 · #FCFCF2Darkest = 950 · #414408
:root {
  --brand-50: #FCFCF2;
  --brand-100: #F9FAE5;
  --brand-200: #F4F7C5;
  --brand-300: #F1F797;
  --brand-400: #EAF263;
  --brand-500: #E3EE2F;
  --brand-600: #D6E212;
  --brand-700: #afb90f;
  --brand-800: #8F970C;
  --brand-900: #676D0D;
  --brand-950: #414408;
  --brand: #afb90f;
  --brand-ink: #000000;
}

Colors that work with #afb90f

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#EAEDC0
Hairlines and dividers
Muted text#969B4B
Captions on the surface
Accent#0B2DBD
Second voice, not a rival
Dark variant#70760A
Hover, pressed, headers
Light variant#FCFDE7
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 #afb90f

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#190FB9
Analogous left#B96E0F
Analogous right#5AB90F
Split-complement 1#0F5AB9
Split-complement 2#6E0FB9
Triadic 1#0FAFB9
Triadic 2#B90FAF
Tetradic#0FB96E

RGB percentages

Red68.6%
Green72.5%
Blue5.9%

CMYK percentages

Cyan5.4%
Magenta0.0%
Yellow91.9%
Key (black)27.5%

Color previews

#afb90f text on a black background

contrast 9.77:1

Card sample

#afb90f text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb90f

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.

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

#afb90f, answered

What color is #afb90f?

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

What is the RGB value of #afb90f?

rgb(175, 185, 15) — 175 red, 185 green and 15 blue out of 255, or 68.6% / 72.5% / 5.9% by channel.

Is #afb90f a light or a dark color?

It is a mid-tone. Relative luminance is 0.4385 and perceived brightness is 67%, so black text on it reaches 9.77:1.

Should I use black or white text on #afb90f?

Black. It scores 9.77:1 against #afb90f, versus 2.15:1 for white — AAA at any size.

What is the complementary color of #afb90f?

#190FB9 sits directly opposite on the wheel. Softer options are the split-complements #0F5AB9 and #6E0FB9, which give the same contrast with far less vibration.

What colors go well with #afb90f?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #969B4B for secondary text, #0B2DBD as an accent and #70760A for hover and pressed states. For a palette, the analogous pair #B96E0F and #5AB90F stays calm, while #190FB9 is the loudest partner.

What is #afb90f in CMYK for printing?

cmyk(5%, 0%, 92%, 28%). 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 #afb90f warm or cool?

Warm — it scores 28 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B9850F; nudged cooler, #71BB0D.

Work with #afb90f in the Color Lab