Skip to content

#faff52

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

RGB
250, 255, 82
HSL
62°, 100%, 66%
CMYK
2, 0, 68, 0
Luminance
0.9245

Every format

HEX#faff52
RGBrgb(250, 255, 82)
HSLhsl(62, 100%, 66%)
CMYKcmyk(2%, 0%, 68%, 0%)
LABlab(97.0 -21.6 77.9)
LCHlch(97.0 80.8 105.5)
OKLCHoklch(0.967 0.186 111.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.0%
Green100.0%
Blue32.2%

CMYK percentages

Cyan2.0%
Magenta0.0%
Yellow67.8%
Key (black)0.0%

Color previews

#faff52 text on a black background

contrast 19.49:1

Card sample

#faff52 text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #faff52

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #faff52 in the Color Lab