Skip to content

#abf308

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

RGB
171, 243, 8
HSL
78°, 94%, 49%
CMYK
30, 0, 97, 5
Luminance
0.7278

Every format

HEX#abf308
RGBrgb(171, 243, 8)
HSLhsl(78, 94%, 49%)
CMYKcmyk(30%, 0%, 97%, 5%)
LABlab(88.3 -49.1 84.8)
LCHlch(88.3 98.0 120.1)
OKLCHoklch(0.883 0.230 128.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#abf308 on white: 1.35:1
AA ✗ fail · AA-large · AAA
Aa
#abf308 on black: 15.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green95.3%
Blue3.1%

CMYK percentages

Cyan29.6%
Magenta0.0%
Yellow96.7%
Key (black)4.7%

Color previews

#abf308 text on a black background

contrast 15.56:1

Card sample

#abf308 text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(171, 243, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 243, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #abf308;
background: linear-gradient(135deg, #abf308, #0EF308);

Monochromatic scale

Palettes built from #abf308

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #abf308 in the Color Lab