Skip to content

#accc02

a dark, electric yellow · cool · closest name: yellow

RGB
172, 204, 2
HSL
70°, 98%, 40%
CMYK
16, 0, 99, 20
Luminance
0.5196

Every format

HEX#accc02
RGBrgb(172, 204, 2)
HSLhsl(70, 98%, 40%)
CMYKcmyk(16%, 0%, 99%, 20%)
LABlab(77.3 -31.6 76.8)
LCHlch(77.3 83.1 112.4)
OKLCHoklch(0.793 0.189 120.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#accc02 on white: 1.84:1
AA ✗ fail · AA-large · AAA
Aa
#accc02 on black: 11.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green80.0%
Blue0.8%

CMYK percentages

Cyan15.7%
Magenta0.0%
Yellow99.0%
Key (black)20.0%

Color previews

#accc02 text on a black background

contrast 11.39:1

Card sample

#accc02 text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(172, 204, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 204, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #accc02;
background: linear-gradient(135deg, #accc02, #25CC02);

Monochromatic scale

Palettes built from #accc02

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #accc02 in the Color Lab