Skip to content

#fafd2c

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

RGB
250, 253, 44
HSL
61°, 98%, 58%
CMYK
1, 0, 83, 1
Luminance
0.9076

Every format

HEX#fafd2c
RGBrgb(250, 253, 44)
HSLhsl(61, 98%, 58%)
CMYKcmyk(1%, 0%, 83%, 1%)
LABlab(96.3 -22.0 88.2)
LCHlch(96.3 90.9 104.0)
OKLCHoklch(0.961 0.202 110.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fafd2c on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#fafd2c on black: 19.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.0%
Green99.2%
Blue17.3%

CMYK percentages

Cyan1.2%
Magenta0.0%
Yellow82.6%
Key (black)0.8%

Color previews

#fafd2c text on a black background

contrast 19.15:1

Card sample

#fafd2c text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(250, 253, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(250, 253, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fafd2c;
background: linear-gradient(135deg, #fafd2c, #6EFD2C);

Monochromatic scale

Palettes built from #fafd2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fafd2c in the Color Lab