Skip to content

#faff02

a balanced, electric yellow · cool · “yellow”

RGB
250, 255, 2
HSL
61°, 100%, 50%
CMYK
2, 0, 99, 0
Luminance
0.9185

Every format

HEX#faff02
RGBrgb(250, 255, 2)
HSLhsl(61, 100%, 50%)
CMYKcmyk(2%, 0%, 99%, 0%)
LABlab(96.8 -23.6 93.9)
LCHlch(96.8 96.8 104.1)
OKLCHoklch(0.964 0.212 111.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#faff02 on white: 1.08:1
AA ✗ fail · AA-large · AAA
Aa
#faff02 on black: 19.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.0%
Green100.0%
Blue0.8%

CMYK percentages

Cyan2.0%
Magenta0.0%
Yellow99.2%
Key (black)0.0%

Color previews

#faff02 text on a black background

contrast 19.37:1

Card sample

#faff02 text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(250, 255, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(250, 255, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #faff02;
background: linear-gradient(135deg, #faff02, #51FF02);

Monochromatic scale

Palettes built from #faff02

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #faff02 in the Color Lab