Skip to content

#afd930

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

RGB
175, 217, 48
HSL
75°, 69%, 52%
CMYK
19, 0, 78, 15
Luminance
0.5895

Every format

HEX#afd930
RGBrgb(175, 217, 48)
HSLhsl(75, 69%, 52%)
CMYKcmyk(19%, 0%, 78%, 15%)
LABlab(81.3 -35.3 72.1)
LCHlch(81.3 80.3 116.1)
OKLCHoklch(0.827 0.189 123.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd930 on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#afd930 on black: 12.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green85.1%
Blue18.8%

CMYK percentages

Cyan19.4%
Magenta0.0%
Yellow77.9%
Key (black)14.9%

Color previews

#afd930 text on a black background

contrast 12.79:1

Card sample

#afd930 text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afd930

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd930 in the Color Lab