Skip to content

#afbd0c

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

RGB
175, 189, 12
HSL
65°, 88%, 39%
CMYK
7, 0, 94, 26
Luminance
0.4554

At a glance

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

Hex
#afbd0c
Hue
65°
yellow
Saturation
88%
electric
Lightness
39%
dark
Brightness
74%
HSV value
Perceived
68%
weighted brightness
Luminance
0.4554
WCAG relative
Temperature
Warm
29/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
10.11:1
Closest name
Yellow Green
ΔE2000 8.1
Where it sits
Hue65° of 360°
Saturation88%
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#afbd0c
RGBrgb(175, 189, 12)
HSLhsl(65, 88%, 39%)
CMYKcmyk(7%, 0%, 94%, 26%)
LABlab(73.2 -23.1 72.8)
LCHlch(73.2 76.4 107.6)
OKLCHoklch(0.761 0.171 115.0)
Decimal11517196
Display P3color(display-p3 0.686 0.741 0.047)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afbd0c on white: 2.08:1
AA ✗ fail · AA-large · AAA
Aa
#afbd0c on black: 10.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CBB300
deuteranopia · #CBB527
tritanopia · #BBB1A1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #afbd0c 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
#F9FAE5
#F4F8C4
#F1F895
#E9F561
#E2F22C
#D5E60F
#afbd0c
#8E990A
#676F0C
#404507
Base = 700Lightest = 50 · #FCFDF2Darkest = 950 · #404507
:root {
  --brand-50: #FCFDF2;
  --brand-100: #F9FAE5;
  --brand-200: #F4F8C4;
  --brand-300: #F1F895;
  --brand-400: #E9F561;
  --brand-500: #E2F22C;
  --brand-600: #D5E60F;
  --brand-700: #afbd0c;
  --brand-800: #8E990A;
  --brand-900: #676F0C;
  --brand-950: #404507;
  --brand: #afbd0c;
  --brand-ink: #000000;
}

Colors that work with #afbd0c

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#0828C1
Second voice, not a rival
Dark variant#6F7808
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 #afbd0c

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#1A0CBD
Analogous left#BD720C
Analogous right#57BD0C
Split-complement 1#0C57BD
Split-complement 2#720CBD
Triadic 1#0CAFBD
Triadic 2#BD0CAF
Tetradic#0CBD72

RGB percentages

Red68.6%
Green74.1%
Blue4.7%

CMYK percentages

Cyan7.4%
Magenta0.0%
Yellow93.7%
Key (black)25.9%

Color previews

#afbd0c text on a black background

contrast 10.11:1

Card sample

#afbd0c text on a white background

contrast 2.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afbd0c

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.

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

#afbd0c, answered

What color is #afbd0c?

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

What is the RGB value of #afbd0c?

rgb(175, 189, 12) — 175 red, 189 green and 12 blue out of 255, or 68.6% / 74.1% / 4.7% by channel.

Is #afbd0c a light or a dark color?

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

Should I use black or white text on #afbd0c?

Black. It scores 10.11:1 against #afbd0c, versus 2.08:1 for white — AAA at any size.

What is the complementary color of #afbd0c?

#1A0CBD sits directly opposite on the wheel. Softer options are the split-complements #0C57BD and #720CBD, which give the same contrast with far less vibration.

What colors go well with #afbd0c?

For interface work: #FAFAF4 as the surface, #E9EDC0 for borders, #959B4B for secondary text, #0828C1 as an accent and #6F7808 for hover and pressed states. For a palette, the analogous pair #BD720C and #57BD0C stays calm, while #1A0CBD is the loudest partner.

What is #afbd0c in CMYK for printing?

cmyk(7%, 0%, 94%, 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 #afbd0c 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 #BD8A0C; nudged cooler, #6EBF0A.

Work with #afbd0c in the Color Lab