Skip to content

#afbc30

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

RGB
175, 188, 48
HSL
66°, 59%, 46%
CMYK
7, 0, 75, 26
Luminance
0.4529

Every format

HEX#afbc30
RGBrgb(175, 188, 48)
HSLhsl(66, 59%, 46%)
CMYKcmyk(7%, 0%, 75%, 26%)
LABlab(73.1 -21.6 64.5)
LCHlch(73.1 68.0 108.5)
OKLCHoklch(0.761 0.157 114.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afbc30 on white: 2.09:1
AA ✗ fail · AA-large · AAA
Aa
#afbc30 on black: 10.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green73.7%
Blue18.8%

CMYK percentages

Cyan6.9%
Magenta0.0%
Yellow74.5%
Key (black)26.3%

Color previews

#afbc30 text on a black background

contrast 10.06:1

Card sample

#afbc30 text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afbc30

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afbc30 in the Color Lab