Skip to content

#afbf40

a balanced, vivid yellow · cool · closest name: olivedrab

RGB
175, 191, 64
HSL
68°, 50%, 50%
CMYK
8, 0, 67, 25
Luminance
0.4675

Every format

HEX#afbf40
RGBrgb(175, 191, 64)
HSLhsl(68, 50%, 50%)
CMYKcmyk(8%, 0%, 67%, 25%)
LABlab(74.0 -22.2 59.6)
LCHlch(74.0 63.6 110.4)
OKLCHoklch(0.768 0.150 116.2)

Copy-ready code

/* CSS */
color: #afbf40;
background-color: #afbf40;
/* Tailwind (arbitrary) */
class="text-[#afbf40] bg-[#afbf40]"
/* SCSS */
$brand: #afbf40;
/* SwiftUI */
Color(red: 0.686, green: 0.749, blue: 0.251)
/* Android */
Color.parseColor("#afbf40")

Accessibility — WCAG contrast

Aa
#afbf40 on white: 2.03:1
AA ✗ fail · AA-large · AAA
Aa
#afbf40 on black: 10.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green74.9%
Blue25.1%

CMYK percentages

Cyan8.4%
Magenta0.0%
Yellow66.5%
Key (black)25.1%

Color previews

#afbf40 text on a black background

contrast 10.35:1

Card sample

#afbf40 text on a white background

contrast 2.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 191, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 191, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afbf40;
background: linear-gradient(135deg, #afbf40, #5ABF40);

Monochromatic scale

Palettes built from #afbf40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afbf40 in the Color Lab