Skip to content

#afbc45

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

RGB
175, 188, 69
HSL
67°, 47%, 50%
CMYK
7, 0, 63, 26
Luminance
0.4551

Every format

HEX#afbc45
RGBrgb(175, 188, 69)
HSLhsl(67, 47%, 50%)
CMYKcmyk(7%, 0%, 63%, 26%)
LABlab(73.2 -20.4 56.7)
LCHlch(73.2 60.2 109.8)
OKLCHoklch(0.762 0.142 115.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afbc45 on white: 2.08:1
AA ✗ fail · AA-large · AAA
Aa
#afbc45 on black: 10.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green73.7%
Blue27.1%

CMYK percentages

Cyan6.9%
Magenta0.0%
Yellow63.3%
Key (black)26.3%

Color previews

#afbc45 text on a black background

contrast 10.10:1

Card sample

#afbc45 text on a white background

contrast 2.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afbc45

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afbc45 in the Color Lab